Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54986 - trunk/libs/serialization/src
From: ramey_at_[hidden]
Date: 2009-07-16 17:19:48


Author: ramey
Date: 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
New Revision: 54986
URL: http://svn.boost.org/trac/boost/changeset/54986

Log:
Fix test dll exported
Text files modified:
   trunk/libs/serialization/src/basic_serializer_map.cpp | 6 +++---
   trunk/libs/serialization/src/binary_iarchive.cpp | 4 ++++
   trunk/libs/serialization/src/binary_oarchive.cpp | 5 ++++-
   trunk/libs/serialization/src/binary_wiarchive.cpp | 6 +++++-
   trunk/libs/serialization/src/binary_woarchive.cpp | 4 +++-
   trunk/libs/serialization/src/polymorphic_iarchive.cpp | 15 +++++++++++++--
   trunk/libs/serialization/src/polymorphic_oarchive.cpp | 17 +++++++++++++++--
   trunk/libs/serialization/src/text_iarchive.cpp | 8 ++++++++
   trunk/libs/serialization/src/text_oarchive.cpp | 3 +++
   trunk/libs/serialization/src/text_wiarchive.cpp | 5 ++++-
   trunk/libs/serialization/src/text_woarchive.cpp | 4 ++++
   trunk/libs/serialization/src/xml_iarchive.cpp | 4 ++++
   trunk/libs/serialization/src/xml_oarchive.cpp | 5 ++++-
   trunk/libs/serialization/src/xml_wiarchive.cpp | 4 ++++
   trunk/libs/serialization/src/xml_woarchive.cpp | 7 ++++---
   15 files changed, 82 insertions(+), 15 deletions(-)

Modified: trunk/libs/serialization/src/basic_serializer_map.cpp
==============================================================================
--- trunk/libs/serialization/src/basic_serializer_map.cpp (original)
+++ trunk/libs/serialization/src/basic_serializer_map.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -38,7 +38,7 @@
 }
 
 BOOST_ARCHIVE_DECL(void)
-basic_serializer_map::erase(basic_serializer * bs){
+basic_serializer_map::erase(const basic_serializer * bs){
     map_type::iterator it = m_map.begin();
     map_type::iterator it_end = m_map.end();
 
@@ -57,8 +57,7 @@
     //if(*it == bs)
     // m_map.erase(it);
 }
-
-BOOST_ARCHIVE_DECL(const basic_serializer *)
+BOOST_ARCHIVE_DECL(const basic_serializer *)
 basic_serializer_map::find(
     const boost::serialization::extended_type_info & eti
 ) const {
@@ -72,3 +71,4 @@
 } // namespace detail
 } // namespace archive
 } // namespace boost
+

Modified: trunk/libs/serialization/src/binary_iarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/binary_iarchive.cpp (original)
+++ trunk/libs/serialization/src/binary_iarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -12,7 +12,9 @@
 
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/binary_iarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_iprimitive.ipp>
 #include <boost/archive/impl/basic_binary_iarchive.ipp>
 
@@ -20,6 +22,7 @@
 namespace archive {
 
 // explicitly instantiate for this type of stream
+template class detail::archive_serializer_map<naked_binary_iarchive>;
 template class basic_binary_iprimitive<
     naked_binary_iarchive,
     std::istream::char_type,
@@ -33,6 +36,7 @@
>;
 
 // explicitly instantiate for this type of stream
+template class detail::archive_serializer_map<binary_iarchive>;
 template class basic_binary_iprimitive<
     binary_iarchive,
     std::istream::char_type,

Modified: trunk/libs/serialization/src/binary_oarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/binary_oarchive.cpp (original)
+++ trunk/libs/serialization/src/binary_oarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -12,14 +12,17 @@
 
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/binary_oarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
+// explicitly instantiate for this type of binary stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_oprimitive.ipp>
 #include <boost/archive/impl/basic_binary_oarchive.ipp>
 
 namespace boost {
 namespace archive {
 
-// explicitly instantiate for this type of binary stream
+template class detail::archive_serializer_map<binary_oarchive>;
 template class basic_binary_oprimitive<
     binary_oarchive,
     std::ostream::char_type,

Modified: trunk/libs/serialization/src/binary_wiarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/binary_wiarchive.cpp (original)
+++ trunk/libs/serialization/src/binary_wiarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -16,14 +16,17 @@
 
 #define BOOST_WARCHIVE_SOURCE
 #include <boost/archive/binary_wiarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
+// explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_iprimitive.ipp>
 #include <boost/archive/impl/basic_binary_iarchive.ipp>
 
 namespace boost {
 namespace archive {
 
-// explicitly instantiate for this type of text stream
+template class detail::archive_serializer_map<naked_binary_wiarchive>;
 template class basic_binary_iprimitive<
     naked_binary_wiarchive,
     wchar_t,
@@ -37,6 +40,7 @@
>;
 
 // explicitly instantiate for this type of text stream
+template class detail::archive_serializer_map<binary_wiarchive>;
 template class basic_binary_iprimitive<
     binary_wiarchive,
     wchar_t,

Modified: trunk/libs/serialization/src/binary_woarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/binary_woarchive.cpp (original)
+++ trunk/libs/serialization/src/binary_woarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -17,13 +17,15 @@
 #define BOOST_WARCHIVE_SOURCE
 #include <boost/archive/binary_woarchive.hpp>
 
+// explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_binary_oprimitive.ipp>
 #include <boost/archive/impl/basic_binary_oarchive.ipp>
 
 namespace boost {
 namespace archive {
 
-// explicitly instantiate for this type of text stream
+template class detail::archive_serializer_map<binary_woarchive>;
 template class basic_binary_oprimitive<
     binary_woarchive,
     wchar_t,

Modified: trunk/libs/serialization/src/polymorphic_iarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/polymorphic_iarchive.cpp (original)
+++ trunk/libs/serialization/src/polymorphic_iarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -12,7 +12,18 @@
 # pragma warning (disable : 4786) // too long name, harmless warning
 #endif
 
-#include <istream>
-
 #define BOOST_ARCHIVE_SOURCE
+#include <boost/archive/detail/archive_serializer_map.hpp>
+
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/polymorphic_iarchive.hpp>
+
+namespace boost {
+namespace archive {
+namespace detail {
+
+template class archive_serializer_map<polymorphic_iarchive>;
+
+} // detail
+} // archive
+} // boost

Modified: trunk/libs/serialization/src/polymorphic_oarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/polymorphic_oarchive.cpp (original)
+++ trunk/libs/serialization/src/polymorphic_oarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -12,7 +12,20 @@
 # pragma warning (disable : 4786) // too long name, harmless warning
 #endif
 
-#include <ostream>
-
 #define BOOST_ARCHIVE_SOURCE
+#include <boost/archive/detail/archive_serializer_map.hpp>
+#define BOOST_ARCHIVE_SOURCE
+#include <boost/archive/detail/archive_serializer_map.hpp>
+
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/polymorphic_oarchive.hpp>
+
+namespace boost {
+namespace archive {
+namespace detail {
+
+template class archive_serializer_map<polymorphic_oarchive>;
+
+} // detail
+} // archive
+} // boost

Modified: trunk/libs/serialization/src/text_iarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/text_iarchive.cpp (original)
+++ trunk/libs/serialization/src/text_iarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -8,19 +8,27 @@
 
 // See http://www.boost.org for updates, documentation, and revision history.
 
+#if (defined _MSC_VER) && (_MSC_VER == 1200)
+# pragma warning (disable : 4786) // too long name, harmless warning
+#endif
+
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/text_iarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
 // explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_text_iarchive.ipp>
 #include <boost/archive/impl/text_iarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<naked_text_iarchive>;
 template class basic_text_iarchive<naked_text_iarchive> ;
 template class text_iarchive_impl<naked_text_iarchive> ;
 
+template class detail::archive_serializer_map<text_iarchive>;
 template class basic_text_iarchive<text_iarchive> ;
 template class text_iarchive_impl<text_iarchive> ;
 

Modified: trunk/libs/serialization/src/text_oarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/text_oarchive.cpp (original)
+++ trunk/libs/serialization/src/text_oarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -14,8 +14,10 @@
 
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/text_oarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
 // explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_text_oarchive.ipp>
 #include <boost/archive/impl/text_oarchive_impl.ipp>
 
@@ -23,6 +25,7 @@
 namespace archive {
 
 //template class basic_text_oprimitive<std::ostream> ;
+template class detail::archive_serializer_map<text_oarchive>;
 template class basic_text_oarchive<text_oarchive> ;
 template class text_oarchive_impl<text_oarchive> ;
 

Modified: trunk/libs/serialization/src/text_wiarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/text_wiarchive.cpp (original)
+++ trunk/libs/serialization/src/text_wiarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -16,17 +16,21 @@
 
 #define BOOST_WARCHIVE_SOURCE
 #include <boost/archive/text_wiarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
 // explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_text_iarchive.ipp>
 #include <boost/archive/impl/text_wiarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<naked_text_wiarchive>;
 template class basic_text_iarchive<naked_text_wiarchive> ;
 template class text_wiarchive_impl<naked_text_wiarchive> ;
 
+template class detail::archive_serializer_map<text_wiarchive>;
 template class basic_text_iarchive<text_wiarchive> ;
 template class text_wiarchive_impl<text_wiarchive> ;
 
@@ -35,4 +39,3 @@
 
 #endif // BOOST_NO_STD_WSTREAMBUF
 
-

Modified: trunk/libs/serialization/src/text_woarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/text_woarchive.cpp (original)
+++ trunk/libs/serialization/src/text_woarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -15,13 +15,17 @@
 
 #define BOOST_WARCHIVE_SOURCE
 #include <boost/archive/text_woarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
+// explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_text_oarchive.ipp>
 #include <boost/archive/impl/text_woarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<text_woarchive>;
 template class basic_text_oarchive<text_woarchive> ;
 template class text_woarchive_impl<text_woarchive> ;
 

Modified: trunk/libs/serialization/src/xml_iarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/xml_iarchive.cpp (original)
+++ trunk/libs/serialization/src/xml_iarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -24,17 +24,21 @@
 #endif
 
 #include <boost/archive/xml_iarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
 // explicitly instantiate for this type of xml stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_xml_iarchive.ipp>
 #include <boost/archive/impl/xml_iarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<naked_xml_iarchive>;
 template class basic_xml_iarchive<naked_xml_iarchive> ;
 template class xml_iarchive_impl<naked_xml_iarchive> ;
 
+template class detail::archive_serializer_map<xml_iarchive>;
 template class basic_xml_iarchive<xml_iarchive> ;
 template class xml_iarchive_impl<xml_iarchive> ;
 

Modified: trunk/libs/serialization/src/xml_oarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/xml_oarchive.cpp (original)
+++ trunk/libs/serialization/src/xml_oarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -14,14 +14,17 @@
 
 #define BOOST_ARCHIVE_SOURCE
 #include <boost/archive/xml_oarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
+// explicitly instantiate for this type of xml stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_xml_oarchive.ipp>
 #include <boost/archive/impl/xml_oarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
-// explicitly instantiate for this type of xml stream
+template class detail::archive_serializer_map<xml_oarchive>;
 template class basic_xml_oarchive<xml_oarchive> ;
 template class xml_oarchive_impl<xml_oarchive> ;
 

Modified: trunk/libs/serialization/src/xml_wiarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/xml_wiarchive.cpp (original)
+++ trunk/libs/serialization/src/xml_wiarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -29,17 +29,21 @@
 #endif
 
 #include <boost/archive/xml_wiarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
 // explicitly instantiate for this type of xml stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_xml_iarchive.ipp>
 #include <boost/archive/impl/xml_wiarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<naked_xml_wiarchive>;
 template class basic_xml_iarchive<naked_xml_wiarchive> ;
 template class xml_wiarchive_impl<naked_xml_wiarchive> ;
 
+template class detail::archive_serializer_map<xml_wiarchive>;
 template class basic_xml_iarchive<xml_wiarchive> ;
 template class xml_wiarchive_impl<xml_wiarchive> ;
 

Modified: trunk/libs/serialization/src/xml_woarchive.cpp
==============================================================================
--- trunk/libs/serialization/src/xml_woarchive.cpp (original)
+++ trunk/libs/serialization/src/xml_woarchive.cpp 2009-07-16 17:19:47 EDT (Thu, 16 Jul 2009)
@@ -15,16 +15,17 @@
 
 #define BOOST_WARCHIVE_SOURCE
 #include <boost/archive/xml_woarchive.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
 
-/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
-// implemenations of functions specific to wide char archives
-
+// explicitly instantiate for this type of text stream
+#include <boost/archive/impl/archive_serializer_map.ipp>
 #include <boost/archive/impl/basic_xml_oarchive.ipp>
 #include <boost/archive/impl/xml_woarchive_impl.ipp>
 
 namespace boost {
 namespace archive {
 
+template class detail::archive_serializer_map<xml_woarchive>;
 template class basic_xml_oarchive<xml_woarchive> ;
 template class xml_woarchive_impl<xml_woarchive> ;
 


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