Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.



// demo_polymorphic_A.hpp

// (C) Copyright 2002 Robert Ramey - . 
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at

namespace boost {
namespace archive {

class polymorphic_iarchive;
class polymorphic_oarchive;

} // namespace archive
} // namespace boost

struct A {
    // class a contains a pointer to a "hidden" declaration
    void serialize(boost::archive::polymorphic_iarchive & ar, const unsigned int file_version);
    void serialize(boost::archive::polymorphic_oarchive & ar, const unsigned int file_version);
    int data;
    bool operator==(const A & rhs) const {
        return data ==;
    A() :