Ticket #3934: d.h
| File d.h, 383 bytes (added by , 13 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <iostream> |
| 2 | using namespace std; |
| 3 | |
| 4 | |
| 5 | class D : public B { |
| 6 | |
| 7 | public: |
| 8 | |
| 9 | D() {}; |
| 10 | |
| 11 | D(std::string a); |
| 12 | |
| 13 | virtual ~D() {}; |
| 14 | |
| 15 | virtual void aB(); |
| 16 | |
| 17 | std::string m_string; |
| 18 | |
| 19 | template<class Archive> void serialize(Archive &ar, const unsigned int version) |
| 20 | { |
| 21 | ar & boost::serialization::base_object<B>(*this); |
| 22 | ar & m_string; |
| 23 | } |
| 24 | }; |
