Ticket #4698: ser_cannot_export.patch

File ser_cannot_export.patch, 2.3 KB (added by Jim Bell <jim@…>, 12 years ago)
  • archive/impl/archive_serializer_map.ipp

     
    2626#  pragma warning(disable : 4511 4512)
    2727#endif
    2828
    29 namespace { // anon
     29namespace extra_detail { // anon
    3030    template<class Archive>
    3131    class map : public basic_serializer_map
    3232    {};
     
    4040BOOST_ARCHIVE_OR_WARCHIVE_DECL(bool)
    4141archive_serializer_map<Archive>::insert(const basic_serializer * bs){
    4242    return boost::serialization::singleton<
    43         map<Archive>
     43        extra_detail::map<Archive>
    4444    >::get_mutable_instance().insert(bs);
    4545}
    4646
     
    4848BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
    4949archive_serializer_map<Archive>::erase(const basic_serializer * bs){
    5050    if(boost::serialization::singleton<
    51         map<Archive>
     51        extra_detail::map<Archive>
    5252    >::is_destroyed())
    5353        return;
    5454    boost::serialization::singleton<
    55         map<Archive>
     55        extra_detail::map<Archive>
    5656    >::get_mutable_instance().erase(bs);
    5757}
    5858
     
    6262    const boost::serialization::extended_type_info & eti
    6363) {
    6464    return boost::serialization::singleton<
    65         map<Archive>
     65        extra_detail::map<Archive>
    6666    >::get_const_instance().find(eti);
    6767}
    6868
  • serialization/export.hpp

     
    120120// This was made this way so that export.hpp could be included
    121121// in other headers.  This is still under study.
    122122
    123 namespace {
     123namespace extra_detail {
    124124
    125125template<class T>
    126126struct guid_initializer
     
    156156    namespace boost {                                        \
    157157    namespace archive {                                      \
    158158    namespace detail {                                       \
    159     namespace {                                              \
     159    namespace extra_detail {                                 \
    160160    template<>                                               \
    161161    struct init_guid< T > {                                  \
    162162        static guid_initializer< T > const & g;              \