aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/vector.h
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-06-27 17:17:11 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-01 14:57:26 -0400
commite344b9c734d86d5d42d76c1e7386a9b6e710715d (patch)
tree170e223cdc510d082108eb9604d7b1efc772a63f /src/serialization/vector.h
parentAdd missing pragma (diff)
downloadmonero-e344b9c734d86d5d42d76c1e7386a9b6e710715d.tar.xz
Improved (fixed?) serialization for vec<uint32_t>
Diffstat (limited to 'src/serialization/vector.h')
-rw-r--r--src/serialization/vector.h7
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);