summaryrefslogtreecommitdiff
path: root/boost/serialization/hash_collections_load_imp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/serialization/hash_collections_load_imp.hpp')
-rw-r--r--boost/serialization/hash_collections_load_imp.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/serialization/hash_collections_load_imp.hpp b/boost/serialization/hash_collections_load_imp.hpp
index de85fd3fd2..88def8f1aa 100644
--- a/boost/serialization/hash_collections_load_imp.hpp
+++ b/boost/serialization/hash_collections_load_imp.hpp
@@ -34,7 +34,6 @@ namespace stl {
template<class Archive, class Container, class InputFunction>
inline void load_hash_collection(Archive & ar, Container &s)
{
- s.clear();
collection_size_type count;
collection_size_type bucket_count;
boost::serialization::item_version_type item_version(0);
@@ -61,6 +60,7 @@ inline void load_hash_collection(Archive & ar, Container &s)
if(boost::archive::library_version_type(3) < library_version){
ar >> BOOST_SERIALIZATION_NVP(item_version);
}
+ s.clear();
#if ! defined(__MWERKS__)
s.resize(bucket_count);
#endif