33 #include <boost/type_traits/make_unsigned.hpp> 43 return std::is_integral<T>::value && std::is_unsigned<T>::value &&
sizeof(
T) > 1;
46 template <
typename Archive,
class T>
47 typename std::enable_if<!use_pair_varint<T>(),
bool>::type
53 template<
typename Archive,
typename T>
54 typename std::enable_if<use_pair_varint<T>(),
bool>::type
57 static constexpr
const bool previously_varint = std::is_same<uint64_t, T>();
59 if (!previously_varint && ar.varint_bug_backward_compatibility_enabled() && !
typename Archive::is_saving())
61 ar.serialize_varint(e);
67 template <
template <
bool>
class Archive,
class F,
class S>
72 if (!ar.stream().good())
79 if (!ar.stream().good())
84 if (!ar.stream().good())
91 template <
template <
bool>
class Archive,
class F,
class S>
95 if (!ar.stream().good())
99 if (!ar.stream().good())
104 if (!ar.stream().good())
Definition: binary_utils.h:36
const uint32_t T[512]
Definition: groestl_tables.h:36
bool do_serialize(Archive< false > &ar, std::pair< F, S > &p)
Definition: pair.h:68
#define F(w, k)
Definition: sha512-blocks.c:61
std::enable_if<!use_pair_varint< T >), bool >::type serialize_pair_element(Archive &ar, T &e)
Definition: pair.h:48
Simple DSL AAPI based on.
declaration and default definition for the functions used the API
Definition: expect.cpp:33
constexpr bool use_pair_varint() noexcept
Definition: pair.h:41