]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/serialization/example/demo_pimpl_A.cpp
1 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
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)
9 #include <boost/archive/text_iarchive.hpp>
10 #include <boost/archive/text_oarchive.hpp>
12 #include "demo_pimpl_A.hpp"
14 // "hidden" definition of class B
17 template<class Archive
>
18 void serialize(Archive
& ar
, const unsigned int /* file_version */){
29 // now we can define the serialization for class A
30 template<class Archive
>
31 void A::serialize(Archive
& ar
, const unsigned int /* file_version */){
35 // without the explicit instantiations below, the program will
36 // fail to link for lack of instantiantiation of the above function
37 // note: the following failed to fix link errors for vc 7.0 !
38 template void A::serialize
<boost::archive::text_iarchive
>(
39 boost::archive::text_iarchive
& ar
,
40 const unsigned int file_version
42 template void A::serialize
<boost::archive::text_oarchive
>(
43 boost::archive::text_oarchive
& ar
,
44 const unsigned int file_version