Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/serialization/hash_map.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 #ifndef BOOST_SERIALIZATION_HASH_MAP_HPP | 1 #ifndef BOOST_SERIALIZATION_HASH_MAP_HPP |
2 #define BOOST_SERIALIZATION_HASH_MAP_HPP | 2 #define BOOST_SERIALIZATION_HASH_MAP_HPP |
3 | 3 |
4 // MS compatible compilers support #pragma once | 4 // MS compatible compilers support #pragma once |
5 #if defined(_MSC_VER) && (_MSC_VER >= 1020) | 5 #if defined(_MSC_VER) |
6 # pragma once | 6 # pragma once |
7 #endif | 7 #endif |
8 | 8 |
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 | 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
10 // serialization/hash_map.hpp: | 10 // serialization/hash_map.hpp: |
38 inline void operator()( | 38 inline void operator()( |
39 Archive &ar, | 39 Archive &ar, |
40 Container &s, | 40 Container &s, |
41 const unsigned int v | 41 const unsigned int v |
42 ){ | 42 ){ |
43 typedef BOOST_DEDUCED_TYPENAME Container::value_type type; | 43 typedef typename Container::value_type type; |
44 detail::stack_construct<Archive, type> t(ar, v); | 44 detail::stack_construct<Archive, type> t(ar, v); |
45 // borland fails silently w/o full namespace | 45 // borland fails silently w/o full namespace |
46 ar >> boost::serialization::make_nvp("item", t.reference()); | 46 ar >> boost::serialization::make_nvp("item", t.reference()); |
47 std::pair<BOOST_DEDUCED_TYPENAME Container::const_iterator, bool> result = | 47 std::pair<typename Container::const_iterator, bool> result = |
48 s.insert(t.reference()); | 48 s.insert(t.reference()); |
49 // note: the following presumes that the map::value_type was NOT tracked | 49 // note: the following presumes that the map::value_type was NOT tracked |
50 // in the archive. This is the usual case, but here there is no way | 50 // in the archive. This is the usual case, but here there is no way |
51 // to determine that. | 51 // to determine that. |
52 if(result.second){ | 52 if(result.second){ |
65 inline void operator()( | 65 inline void operator()( |
66 Archive &ar, | 66 Archive &ar, |
67 Container &s, | 67 Container &s, |
68 const unsigned int v | 68 const unsigned int v |
69 ){ | 69 ){ |
70 typedef BOOST_DEDUCED_TYPENAME Container::value_type type; | 70 typedef typename Container::value_type type; |
71 detail::stack_construct<Archive, type> t(ar, v); | 71 detail::stack_construct<Archive, type> t(ar, v); |
72 // borland fails silently w/o full namespace | 72 // borland fails silently w/o full namespace |
73 ar >> boost::serialization::make_nvp("item", t.reference()); | 73 ar >> boost::serialization::make_nvp("item", t.reference()); |
74 BOOST_DEDUCED_TYPENAME Container::const_iterator result | 74 typename Container::const_iterator result |
75 = s.insert(t.reference()); | 75 = s.insert(t.reference()); |
76 // note: the following presumes that the map::value_type was NOT tracked | 76 // note: the following presumes that the map::value_type was NOT tracked |
77 // in the archive. This is the usual case, but here there is no way | 77 // in the archive. This is the usual case, but here there is no way |
78 // to determine that. | 78 // to determine that. |
79 ar.reset_object_address( | 79 ar.reset_object_address( |