• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
2// A.ipp    simple class test
3
4// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
5// Use, modification and distribution is subject to the Boost Software
6// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9//  See http://www.boost.org for updates, documentation, and revision history.
10
11#if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1)
12#include <boost/archive/dinkumware.hpp>
13#endif
14
15#include <boost/serialization/nvp.hpp>
16#include "A.hpp"
17
18template<class Archive>
19void A::serialize(
20    Archive &ar,
21    const unsigned int /* file_version */
22){
23    ar & BOOST_SERIALIZATION_NVP(b);
24    #ifndef BOOST_NO_INT64_T
25    ar & BOOST_SERIALIZATION_NVP(f);
26    ar & BOOST_SERIALIZATION_NVP(g);
27    #endif
28    #if BOOST_WORKAROUND(BOOST_BORLANDC,  <= 0x551 )
29        int i;
30        if(BOOST_DEDUCED_TYPENAME Archive::is_saving::value){
31            i = l;
32            ar & BOOST_SERIALIZATION_NVP(i);
33        }
34        else{
35            ar & BOOST_SERIALIZATION_NVP(i);
36            l = i;
37        }
38    #else
39        ar & BOOST_SERIALIZATION_NVP(l);
40    #endif
41    ar & BOOST_SERIALIZATION_NVP(m);
42    ar & BOOST_SERIALIZATION_NVP(n);
43    ar & BOOST_SERIALIZATION_NVP(o);
44    ar & BOOST_SERIALIZATION_NVP(p);
45    ar & BOOST_SERIALIZATION_NVP(q);
46    #ifndef BOOST_NO_CWCHAR
47    ar & BOOST_SERIALIZATION_NVP(r);
48    #endif
49    ar & BOOST_SERIALIZATION_NVP(c);
50    ar & BOOST_SERIALIZATION_NVP(s);
51    ar & BOOST_SERIALIZATION_NVP(t);
52    ar & BOOST_SERIALIZATION_NVP(u);
53    ar & BOOST_SERIALIZATION_NVP(v);
54    ar & BOOST_SERIALIZATION_NVP(w);
55    ar & BOOST_SERIALIZATION_NVP(x);
56    ar & BOOST_SERIALIZATION_NVP(y);
57    #ifndef BOOST_NO_STD_WSTRING
58    ar & BOOST_SERIALIZATION_NVP(z);
59    #endif
60}
61