Ticket #4698: ser_cannot_export.patch
File ser_cannot_export.patch, 2.3 KB (added by , 12 years ago) |
---|
-
archive/impl/archive_serializer_map.ipp
26 26 # pragma warning(disable : 4511 4512) 27 27 #endif 28 28 29 namespace { // anon29 namespace extra_detail { // anon 30 30 template<class Archive> 31 31 class map : public basic_serializer_map 32 32 {}; … … 40 40 BOOST_ARCHIVE_OR_WARCHIVE_DECL(bool) 41 41 archive_serializer_map<Archive>::insert(const basic_serializer * bs){ 42 42 return boost::serialization::singleton< 43 map<Archive>43 extra_detail::map<Archive> 44 44 >::get_mutable_instance().insert(bs); 45 45 } 46 46 … … 48 48 BOOST_ARCHIVE_OR_WARCHIVE_DECL(void) 49 49 archive_serializer_map<Archive>::erase(const basic_serializer * bs){ 50 50 if(boost::serialization::singleton< 51 map<Archive>51 extra_detail::map<Archive> 52 52 >::is_destroyed()) 53 53 return; 54 54 boost::serialization::singleton< 55 map<Archive>55 extra_detail::map<Archive> 56 56 >::get_mutable_instance().erase(bs); 57 57 } 58 58 … … 62 62 const boost::serialization::extended_type_info & eti 63 63 ) { 64 64 return boost::serialization::singleton< 65 map<Archive>65 extra_detail::map<Archive> 66 66 >::get_const_instance().find(eti); 67 67 } 68 68 -
serialization/export.hpp
120 120 // This was made this way so that export.hpp could be included 121 121 // in other headers. This is still under study. 122 122 123 namespace {123 namespace extra_detail { 124 124 125 125 template<class T> 126 126 struct guid_initializer … … 156 156 namespace boost { \ 157 157 namespace archive { \ 158 158 namespace detail { \ 159 namespace {\159 namespace extra_detail { \ 160 160 template<> \ 161 161 struct init_guid< T > { \ 162 162 static guid_initializer< T > const & g; \