diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/types.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/types.cpp')
-rw-r--r-- | util/system/types.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/util/system/types.cpp b/util/system/types.cpp index 75dba24f61..11cc72aee3 100644 --- a/util/system/types.cpp +++ b/util/system/types.cpp @@ -1,18 +1,18 @@ -#include "types.h" - -#include <util/generic/typetraits.h> +#include "types.h" + +#include <util/generic/typetraits.h> #include <util/generic/typelist.h> - -static_assert(sizeof(ui8) == 1, "incorrect ui8 type"); -static_assert(sizeof(ui16) == 2, "incorrect ui16 type"); -static_assert(sizeof(ui32) == 4, "incorrect ui32 type"); -static_assert(sizeof(ui64) == 8, "incorrect ui64 type"); - -static_assert(sizeof(i8) == 1, "incorrect i8 type"); -static_assert(sizeof(i16) == 2, "incorrect i16 type"); -static_assert(sizeof(i32) == 4, "incorrect i32 type"); -static_assert(sizeof(i64) == 8, "incorrect i64 type"); - -static_assert(sizeof(size_t) == sizeof(ssize_t), "incorrect ssize_t"); - + +static_assert(sizeof(ui8) == 1, "incorrect ui8 type"); +static_assert(sizeof(ui16) == 2, "incorrect ui16 type"); +static_assert(sizeof(ui32) == 4, "incorrect ui32 type"); +static_assert(sizeof(ui64) == 8, "incorrect ui64 type"); + +static_assert(sizeof(i8) == 1, "incorrect i8 type"); +static_assert(sizeof(i16) == 2, "incorrect i16 type"); +static_assert(sizeof(i32) == 4, "incorrect i32 type"); +static_assert(sizeof(i64) == 8, "incorrect i64 type"); + +static_assert(sizeof(size_t) == sizeof(ssize_t), "incorrect ssize_t"); + static_assert(TTypeList<ui32, ui64>::THave<size_t>::value, "incorrect size_t"); |