diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2018-03-05 15:05:06 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-03-06 12:17:41 +0300 |
commit | a0e432bf6814a1fae8e41c02e5f97ae6642385a1 (patch) | |
tree | 73ea27492b1f0b49efa1b25d41d6123aff22bcd6 /coding/varint.hpp | |
parent | fe4a26a2e1925003234f624b4db25deabdadee1b (diff) |
Using _t suffix instead of ::type in whole project + using std:: somewhere.
Diffstat (limited to 'coding/varint.hpp')
-rw-r--r-- | coding/varint.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/coding/varint.hpp b/coding/varint.hpp index a22b77e703..fe0090436f 100644 --- a/coding/varint.hpp +++ b/coding/varint.hpp @@ -8,9 +8,7 @@ #include "base/exception.hpp" #include "base/stl_add.hpp" -#include "std/string.hpp" -#include "std/type_traits.hpp" - +#include <type_traits> /// This function writes, using optimal bytes count. /// Pass any integral type and it will write platform-independent. @@ -176,7 +174,7 @@ template <typename T, typename TSink> void WriteVarInt(TSink & dst, T value) template <typename T, typename TSource> T ReadVarInt(TSource & src) { static_assert(is_signed<T>::value, ""); - return bits::ZigZagDecode(ReadVarUint<typename make_unsigned<T>::type>(src)); + return bits::ZigZagDecode(ReadVarUint<std::make_unsigned_t<T>>(src)); } DECLARE_EXCEPTION(ReadVarIntException, RootException); |