Brian Silverman | 8867871 | 2018-08-04 23:56:48 -0700 | [diff] [blame^] | 1 | #ifndef BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP |
| 2 | #define BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP |
| 3 | |
| 4 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 |
| 5 | // demo_pimpl_A.hpp |
| 6 | |
| 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) |
| 11 | |
| 12 | // class whose declaration is hidden by a pointer |
| 13 | struct B; |
| 14 | |
| 15 | struct A { |
| 16 | // class a contains a pointer to a "hidden" declaration |
| 17 | B *pimpl; |
| 18 | template<class Archive> |
| 19 | void serialize(Archive & ar, const unsigned int file_version); |
| 20 | A(); |
| 21 | ~A(); |
| 22 | }; |
| 23 | |
| 24 | #endif // BOOST_SERIALIZATION_EXAMPLE_DEMO_PIMPL_A_HPP |