diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-06-27 17:17:11 -0400 |
---|---|---|
committer | Zachary Michaels <mikezackles@gmail.com> | 2014-07-01 14:57:26 -0400 |
commit | e344b9c734d86d5d42d76c1e7386a9b6e710715d (patch) | |
tree | 170e223cdc510d082108eb9604d7b1efc772a63f /src/serialization/vector.h | |
parent | Add missing pragma (diff) | |
download | monero-e344b9c734d86d5d42d76c1e7386a9b6e710715d.tar.xz |
Improved (fixed?) serialization for vec<uint32_t>
Diffstat (limited to 'src/serialization/vector.h')
-rw-r--r-- | src/serialization/vector.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/serialization/vector.h b/src/serialization/vector.h index 9a0c0ee56..d07472352 100644 --- a/src/serialization/vector.h +++ b/src/serialization/vector.h @@ -17,6 +17,13 @@ namespace serialization } template <typename Archive> + bool serialize_vector_element(Archive& ar, uint32_t& e) + { + ar.serialize_varint(e); + return true; + } + + template <typename Archive> bool serialize_vector_element(Archive& ar, uint64_t& e) { ar.serialize_varint(e); |