Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:28

0001 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
0002 // basic_binary_oarchive.ipp:
0003 
0004 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
0005 // Use, modification and distribution is subject to the Boost Software
0006 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0007 // http://www.boost.org/LICENSE_1_0.txt)
0008 
0009 //  See http://www.boost.org for updates, documentation, and revision history.
0010 #include <string>
0011 #include <boost/assert.hpp>
0012 #include <algorithm>
0013 #include <cstring>
0014 
0015 #include <boost/config.hpp>
0016 #if defined(BOOST_NO_STDC_NAMESPACE)
0017 namespace std{ 
0018     using ::memcpy; 
0019 }
0020 #endif
0021 
0022 #include <boost/archive/basic_binary_oarchive.hpp>
0023 
0024 namespace boost {
0025 namespace archive {
0026 
0027 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
0028 // implementation of binary_binary_oarchive
0029 
0030 template<class Archive>
0031 BOOST_ARCHIVE_OR_WARCHIVE_DECL void
0032 basic_binary_oarchive<Archive>::init(){
0033     // write signature in an archive version independent manner
0034     const std::string file_signature(BOOST_ARCHIVE_SIGNATURE());
0035     * this->This() << file_signature;
0036     // write library version
0037     const boost::serialization::library_version_type v(BOOST_ARCHIVE_VERSION());
0038     * this->This() << v;
0039 }
0040 
0041 } // namespace archive
0042 } // namespace boost