summaryrefslogtreecommitdiffstats
path: root/util/string/cast.cpp
diff options
context:
space:
mode:
authorAndrey Khalyavin <[email protected]>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/cast.cpp
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
Restoring authorship annotation for Andrey Khalyavin <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/cast.cpp')
-rw-r--r--util/string/cast.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp
index a69eba290d0..aa1e65a8e90 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>;