diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:29 +0300 |
commit | f773626848a7c7456803654292e716b83d69cc12 (patch) | |
tree | db052dfcf9134f492bdbb962cb6c16cea58e1ed3 /util/string/cast.cpp | |
parent | f43ab775d197d300eb67bd4497632b909cd7c2a5 (diff) | |
download | ydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/string/cast.cpp')
-rw-r--r-- | util/string/cast.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp index aa1e65a8e9..a69eba290d 100644 --- a/util/string/cast.cpp +++ b/util/string/cast.cpp @@ -69,7 +69,7 @@ namespace { template <class T, unsigned base, class TChar> struct TBasicIntFormatter { static_assert(1 < base && base < 17, "expect 1 < base && base < 17"); - static_assert(std::is_unsigned<T>::value, "TBasicIntFormatter can only handle unsigned integers."); + static_assert(std::is_unsigned<T>::value, "TBasicIntFormatter can only handle unsigned integers."); static inline size_t Format(T value, TChar* buf, size_t len) { Y_ENSURE(len, TStringBuf("zero length")); @@ -105,7 +105,7 @@ namespace { template <class T, unsigned base, class TChar> struct TIntFormatter { static_assert(1 < base && base < 17, "expect 1 < base && base < 17"); - static_assert(std::is_integral<T>::value, "T must be an integral type."); + static_assert(std::is_integral<T>::value, "T must be an integral type."); static inline size_t Format(T value, TChar* buf, size_t len) { using TUFmt = TBasicIntFormatter<std::make_unsigned_t<T>, base, TChar>; @@ -180,7 +180,7 @@ namespace { template <class T, unsigned base, class TChar> struct TBasicIntParser { static_assert(1 < base && base < 17, "Expect 1 < base && base < 17."); - static_assert(std::is_unsigned<T>::value, "TBasicIntParser can only handle unsigned integers."); + static_assert(std::is_unsigned<T>::value, "TBasicIntParser can only handle unsigned integers."); enum : unsigned { BASE_POW_2 = base * base, @@ -270,10 +270,10 @@ namespace { template <class T, unsigned base, class TChar> struct TIntParser { static_assert(1 < base && base < 17, "Expect 1 < base && base < 17."); - static_assert(std::is_integral<T>::value, "T must be an integral type."); + static_assert(std::is_integral<T>::value, "T must be an integral type."); enum { - IsSigned = std::is_signed<T>::value + IsSigned = std::is_signed<T>::value }; using TUnsigned = std::make_unsigned_t<T>; |