diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/system/types.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 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 11cc72aee3..75dba24f61 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"); |