Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion FixedWidthIntLiterals.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
#include <cstdint>
#include <limits>

#include <type_traits>

#ifndef SCW_FIXEDWIDTH_INT_LITERALS_NAMESPACE
#define SCW_FIXEDWIDTH_INT_LITERALS_NAMESPACE scw
#endif
Expand Down Expand Up @@ -161,7 +163,7 @@ SCW_FIXEDWIDTH_DEFINE_CHECK_VALID_FUNC(size_t, "size_t literal out of range.");
/// Finally the user-defined literal operators. Again with the macros?
#define SCW_FIXEDWIDTH_DEFINE_INTEGER_OPERATOR(typesuffix_, typename_) \
template <char... digits> \
constexpr typename_ operator"" typesuffix_() { \
constexpr typename_ operator""##typesuffix_() { \
return detail::checkValid_##typename_<detail::createValue<digits...>()>(); \
}

Expand Down