diff options
author | qrort <qrort@yandex-team.com> | 2022-12-02 11:31:25 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-12-02 11:31:25 +0300 |
commit | b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (patch) | |
tree | 2a23209faf0fea5586a6d4b9cee60d1b318d29fe /library/cpp/skiff/skiff-inl.h | |
parent | 559174a9144de40d6bb3997ea4073c82289b4974 (diff) | |
download | ydb-b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806.tar.gz |
remove kikimr/driver DEPENDS
Diffstat (limited to 'library/cpp/skiff/skiff-inl.h')
-rw-r--r-- | library/cpp/skiff/skiff-inl.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/library/cpp/skiff/skiff-inl.h b/library/cpp/skiff/skiff-inl.h deleted file mode 100644 index a3f68a9374..0000000000 --- a/library/cpp/skiff/skiff-inl.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#ifndef SKIFF_H -#error "Direct inclusion of this file is not allowed, include skiff.h" -// For the sake of sane code completion. -#include "skiff.h" -#endif -#undef SKIFF_H - -namespace NSkiff { - -//////////////////////////////////////////////////////////////////////////////// - -template <EWireType wireType> -constexpr auto TUnderlyingIntegerType<wireType>::F() { - if constexpr (wireType == EWireType::Int8) { - return i8{}; - } else if constexpr (wireType == EWireType::Int16) { - return i16{}; - } else if constexpr (wireType == EWireType::Int32) { - return i32{}; - } else if constexpr (wireType == EWireType::Int64) { - return i64{}; - } else if constexpr (wireType == EWireType::Uint8) { - return ui8{}; - } else if constexpr (wireType == EWireType::Uint16) { - return ui16{}; - } else if constexpr (wireType == EWireType::Uint32) { - return ui32{}; - } else if constexpr (wireType == EWireType::Uint64) { - return ui64{}; - } else { - static_assert(wireType == EWireType::Int8, "expected integer wire type"); - } -} - -//////////////////////////////////////////////////////////////////////////////// - -} // namespace NSkiff |