diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:38:45 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:39:52 +0900 |
commit | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (patch) | |
tree | e8269ac85a4b0f7d416e2565fa4f451b5cb41351 /boost/serialization/archive_input_unordered_set.hpp | |
parent | d9ec475d945d3035377a0d89ed42e382d8988891 (diff) | |
download | boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.gz boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.bz2 boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.zip |
Imported Upstream version 1.61.0
Change-Id: I96a1f878d1e6164f01e9aadd5147f38fca448d90
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/serialization/archive_input_unordered_set.hpp')
-rw-r--r-- | boost/serialization/archive_input_unordered_set.hpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/boost/serialization/archive_input_unordered_set.hpp b/boost/serialization/archive_input_unordered_set.hpp index 353507e3a2..961b58f1a8 100644 --- a/boost/serialization/archive_input_unordered_set.hpp +++ b/boost/serialization/archive_input_unordered_set.hpp @@ -17,9 +17,7 @@ // See http://www.boost.org for updates, documentation, and revision history. -#include <boost/config.hpp> - -namespace boost { +namespace boost { namespace serialization { namespace stl { @@ -38,7 +36,11 @@ struct archive_input_unordered_set // borland fails silently w/o full namespace ar >> boost::serialization::make_nvp("item", t.reference()); std::pair<typename Container::const_iterator, bool> result = - s.insert(t.reference()); + #ifdef BOOST_NO_CXX11_HDR_UNORDERED_SET + s.insert(t.reference()); + #else + s.emplace(t.reference()); + #endif if(result.second) ar.reset_object_address(& (* result.first), & t.reference()); } @@ -55,10 +57,13 @@ struct archive_input_unordered_multiset ){ typedef typename Container::value_type type; detail::stack_construct<Archive, type> t(ar, v); - // borland fails silently w/o full namespace ar >> boost::serialization::make_nvp("item", t.reference()); - typename Container::const_iterator result - = s.insert(t.reference()); + typename Container::const_iterator result = + #ifdef BOOST_NO_CXX11_HDR_UNORDERED_SET + s.insert(t.reference()); + #else + s.emplace(t.reference()); + #endif ar.reset_object_address(& (* result), & t.reference()); } }; |