diff options
author | thegeorg <[email protected]> | 2022-02-10 16:45:12 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:12 +0300 |
commit | 49116032d905455a7b1c994e4a696afc885c1e71 (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /util/string/cast.cpp | |
parent | 4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/string/cast.cpp')
-rw-r--r-- | util/string/cast.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp index bc0f7e09e6a..aa1e65a8e90 100644 --- a/util/string/cast.cpp +++ b/util/string/cast.cpp @@ -325,7 +325,7 @@ namespace { [[noreturn]] static Y_NO_INLINE void ThrowParseError(EParseStatus status, const TChar* data, size_t len, const TChar* pos) { Y_ASSERT(status != PS_OK); - typedef TBasicString<TChar> TStringType; + typedef TBasicString<TChar> TStringType; switch (status) { case PS_EMPTY_STRING: @@ -443,13 +443,13 @@ DEF_INT_SPEC(int) DEF_INT_SPEC(long) DEF_INT_SPEC(long long) -#ifdef __cpp_char8_t -template <> -size_t ToStringImpl<char8_t>(char8_t value, char* buf, size_t len) { - return FormatInt<ui64, 10, char>(value, buf, len); -} -#endif - +#ifdef __cpp_char8_t +template <> +size_t ToStringImpl<char8_t>(char8_t value, char* buf, size_t len) { + return FormatInt<ui64, 10, char>(value, buf, len); +} +#endif + using TCharIType = std::conditional_t<std::is_signed<char>::value, i64, ui64>; using TWCharIType = std::conditional_t<std::is_signed<wchar_t>::value, i64, ui64>; |