Improved (fixed?) serialization for vec<uint32_t>

This commit is contained in:
Zachary Michaels 2014-06-27 17:17:11 -04:00
parent f98c8abf42
commit e344b9c734

View file

@ -16,6 +16,13 @@ namespace serialization
return ::do_serialize(ar, e); return ::do_serialize(ar, e);
} }
template <typename Archive>
bool serialize_vector_element(Archive& ar, uint32_t& e)
{
ar.serialize_varint(e);
return true;
}
template <typename Archive> template <typename Archive>
bool serialize_vector_element(Archive& ar, uint64_t& e) bool serialize_vector_element(Archive& ar, uint64_t& e)
{ {