Improve vacpp support.
[boost.git] / boost / libs / serialization / example / demo_polymorphic_A.hpp
blobadca2dea59da27a68519e2690fb75244b3361fc4
1 #ifndef BOOST_SERIALIZATION_EXAMPLE_DEMO_POLYMORPHIC_A_HPP
2 #define BOOST_SERIALIZATION_EXAMPLE_DEMO_POLYMORPHIC_A_HPP
4 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
5 // demo_polymorphic_A.hpp
7 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
8 // Use, modification and distribution is subject to the Boost Software
9 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
12 namespace boost {
13 namespace archive {
15 class polymorphic_iarchive;
16 class polymorphic_oarchive;
18 } // namespace archive
19 } // namespace boost
21 struct A {
22 // class a contains a pointer to a "hidden" declaration
23 void serialize(boost::archive::polymorphic_iarchive & ar, const unsigned int file_version);
24 void serialize(boost::archive::polymorphic_oarchive & ar, const unsigned int file_version);
25 int data;
26 bool operator==(const A & rhs) const {
27 return data == rhs.data;
29 A() :
30 data(0)
34 #endif // BOOST_SERIALIZATION_EXAMPLE_DEMO_POLYMORPHIC_A_HPP