diff options
author | Antonio Juarez <antonio.maria.juarez@live.com> | 2014-04-02 17:00:17 +0100 |
---|---|---|
committer | Antonio Juarez <antonio.maria.juarez@live.com> | 2014-04-02 17:00:17 +0100 |
commit | 29c2859a3e8a935ef605534c6c36333894980d50 (patch) | |
tree | 1d31daa09741cc82ecc24c0c89f15b84e74cb12d /src/common | |
parent | some fixes (diff) | |
download | monero-29c2859a3e8a935ef605534c6c36333894980d50.tar.xz |
json rpc for wallet and bugfix
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/unordered_containers_boost_serialization.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/unordered_containers_boost_serialization.h b/src/common/unordered_containers_boost_serialization.h index 0804660ca..a29896ee7 100644 --- a/src/common/unordered_containers_boost_serialization.h +++ b/src/common/unordered_containers_boost_serialization.h @@ -27,6 +27,7 @@ namespace boost template <class Archive, class h_key, class hval> inline void load(Archive &a, std::unordered_map<h_key, hval> &x, const boost::serialization::version_type ver) { + x.clear(); size_t s = 0; a >> s; for(size_t i = 0; i != s; i++) @@ -54,6 +55,7 @@ namespace boost template <class Archive, class hval> inline void load(Archive &a, std::unordered_set<hval> &x, const boost::serialization::version_type ver) { + x.clear(); size_t s = 0; a >> s; for(size_t i = 0; i != s; i++) |