Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54992 - trunk/boost/archive/impl
From: ramey_at_[hidden]
Date: 2009-07-17 00:58:43


Author: ramey
Date: 2009-07-17 00:58:42 EDT (Fri, 17 Jul 2009)
New Revision: 54992
URL: http://svn.boost.org/trac/boost/changeset/54992

Log:
Fix test dll exported
Added:
   trunk/boost/archive/impl/archive_serializer_map.ipp (contents, props changed)

Added: trunk/boost/archive/impl/archive_serializer_map.ipp
==============================================================================
--- (empty file)
+++ trunk/boost/archive/impl/archive_serializer_map.ipp 2009-07-17 00:58:42 EDT (Fri, 17 Jul 2009)
@@ -0,0 +1,62 @@
+/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
+// archive_serializer_map.ipp:
+
+// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org for updates, documentation, and revision history.
+
+//////////////////////////////////////////////////////////////////////
+// implementation of basic_text_iprimitive overrides for the combination
+// of template parameters used to implement a text_iprimitive
+
+#include <boost/config.hpp>
+#include <boost/archive/detail/archive_serializer_map.hpp>
+#include <boost/archive/detail/basic_serializer_map.hpp>
+#include <boost/serialization/singleton.hpp>
+
+namespace boost {
+namespace archive {
+namespace detail {
+
+namespace { // anon
+ template<class Archive>
+ class map : public basic_serializer_map
+ {};
+}
+
+template<class Archive>
+BOOST_ARCHIVE_OR_WARCHIVE_DECL(bool)
+archive_serializer_map<Archive>::insert(const basic_serializer * bs){
+ return boost::serialization::singleton<
+ map<Archive>
+ >::get_mutable_instance().insert(bs);
+}
+
+template<class Archive>
+BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
+archive_serializer_map<Archive>::erase(const basic_serializer * bs){
+ if(boost::serialization::singleton<
+ map<Archive>
+ >::is_destroyed())
+ return;
+ boost::serialization::singleton<
+ map<Archive>
+ >::get_mutable_instance().erase(bs);
+}
+
+template<class Archive>
+BOOST_ARCHIVE_OR_WARCHIVE_DECL(const basic_serializer *)
+archive_serializer_map<Archive>::find(
+ const boost::serialization::extended_type_info & eti
+) {
+ return boost::serialization::singleton<
+ map<Archive>
+ >::get_const_instance().find(eti);
+}
+
+} // namespace detail
+} // namespace archive
+} // namespace boost


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