11 #ifndef __BITSET_SUPPORT_HEADER
12 #define __BITSET_SUPPORT_HEADER
18 template<
size_t N,
typename Archive>
19 void serialize(Archive & ar, std::bitset<N> & arg) {
21 size_type size_ = arg.size();
24 uint8_t data = arg.to_ulong();
27 }
else if(size_ <= 16) {
28 uint16_t data = arg.to_ulong();
31 }
else if(size_ <= 32) {
32 uint32_t data = arg.to_ulong();
35 }
else if(size_ <= 64) {
36 uint64_t data = arg.to_ulong();
42 #endif //__BITSET_SUPPORT_HEADER
uint8_t size_type
Definition: fast_bitset.hpp:51
void serialize(Archive &ar, T &t)
Definition: serializer.hpp:95