Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55321 - trunk/boost/archive/detail
From: ramey_at_[hidden]
Date: 2009-07-31 16:59:58


Author: ramey
Date: 2009-07-31 16:59:57 EDT (Fri, 31 Jul 2009)
New Revision: 55321
URL: http://svn.boost.org/trac/boost/changeset/55321

Log:
Fix test_no_rtti test
extended_type_info system not based on type_id
Text files modified:
   trunk/boost/archive/detail/archive_serializer_map.hpp | 2 +-
   trunk/boost/archive/detail/basic_serializer_map.hpp | 12 +++---------
   trunk/boost/archive/detail/register_archive.hpp | 3 ---
   3 files changed, 4 insertions(+), 13 deletions(-)

Modified: trunk/boost/archive/detail/archive_serializer_map.hpp
==============================================================================
--- trunk/boost/archive/detail/archive_serializer_map.hpp (original)
+++ trunk/boost/archive/detail/archive_serializer_map.hpp 2009-07-31 16:59:57 EDT (Fri, 31 Jul 2009)
@@ -39,7 +39,7 @@
 class BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY()) archive_serializer_map
 {
 public:
- static bool insert(const basic_serializer * bs);
+ static void insert(const basic_serializer * bs);
     static void erase(const basic_serializer * bs);
     static const basic_serializer * find(
         const boost::serialization::extended_type_info & type_

Modified: trunk/boost/archive/detail/basic_serializer_map.hpp
==============================================================================
--- trunk/boost/archive/detail/basic_serializer_map.hpp (original)
+++ trunk/boost/archive/detail/basic_serializer_map.hpp 2009-07-31 16:59:57 EDT (Fri, 31 Jul 2009)
@@ -16,7 +16,7 @@
 
 // See http://www.boost.org for updates, documentation, and revision history.
 
-#include <set>
+#include <list>
 
 #include <boost/config.hpp>
 #include <boost/archive/detail/auto_link_archive.hpp>
@@ -37,16 +37,10 @@
 class BOOST_ARCHIVE_OR_WARCHIVE_DECL(BOOST_PP_EMPTY()) basic_serializer_map : public
     boost::noncopyable
 {
- struct type_info_pointer_compare
- {
- bool operator()(
- const basic_serializer * lhs, const basic_serializer * rhs
- ) const ;
- };
- typedef std::set<const basic_serializer *, type_info_pointer_compare> map_type;
+ typedef std::list<const basic_serializer *> map_type;
     map_type m_map;
 public:
- bool insert(const basic_serializer * bs);
+ void insert(const basic_serializer * bs);
     void erase(const basic_serializer * bs);
     const basic_serializer * find(
         const boost::serialization::extended_type_info & type_

Modified: trunk/boost/archive/detail/register_archive.hpp
==============================================================================
--- trunk/boost/archive/detail/register_archive.hpp (original)
+++ trunk/boost/archive/detail/register_archive.hpp 2009-07-31 16:59:57 EDT (Fri, 31 Jul 2009)
@@ -66,9 +66,6 @@
 
 #else
 
- // This function gets called, but its only purpose is to participate
- // in overload resolution with the functions declared by
- // BOOST_SERIALIZATION_REGISTER_ARCHIVE, below.
 // This function gets called, but its only purpose is to participate
 // in overload resolution with the functions declared by
 // BOOST_SERIALIZATION_REGISTER_ARCHIVE, below.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk