Skip to content

Commit 76a4eed

Browse files
committed
Avoid deprecated spacing in user defined literals
Warns when compiling with Clang on linux.
1 parent c6f8660 commit 76a4eed

File tree

1 file changed

+4
-4
lines changed
  • Utilities/rANS/include/rANS/internal/common

1 file changed

+4
-4
lines changed

Utilities/rANS/include/rANS/internal/common/utils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ inline uint32_t safeadd(uint32_t a, uint32_t b)
152152

153153
} // namespace internal
154154

155-
inline constexpr std::uint8_t operator"" _u8(unsigned long long int value) { return static_cast<uint8_t>(value); };
156-
inline constexpr std::int8_t operator"" _i8(unsigned long long int value) { return static_cast<int8_t>(value); };
155+
inline constexpr std::uint8_t operator""_u8(unsigned long long int value) { return static_cast<uint8_t>(value); };
156+
inline constexpr std::int8_t operator""_i8(unsigned long long int value) { return static_cast<int8_t>(value); };
157157

158-
inline constexpr std::uint16_t operator"" _u16(unsigned long long int value) { return static_cast<uint16_t>(value); };
159-
inline constexpr std::int16_t operator"" _i16(unsigned long long int value) { return static_cast<int16_t>(value); };
158+
inline constexpr std::uint16_t operator""_u16(unsigned long long int value) { return static_cast<uint16_t>(value); };
159+
inline constexpr std::int16_t operator""_i16(unsigned long long int value) { return static_cast<int16_t>(value); };
160160

161161
namespace utils
162162
{

0 commit comments

Comments
 (0)