Boost C++ Libraries: Ticket #12641: binary_oarchive_impl constructor calls derived class before it is constructed. https://svn.boost.org/trac10/ticket/12641 <p> If I inherit from binary_oarchive_impl and hide the save_override method with one of my own, it gets called before my archive class is constructed. </p> <p> I call base class binary_orachive_impl constructor from my constructor. It calls its init() method which calls basic_binary_oarchive init() from detail/basic_binary_oarchive.ipp which calls this-&gt;This()::operator&lt;&lt; to output the file signature and version </p> <p> This() refers to my derived class which has not been constructed. Local variables required for the archive are not yet initialized. It is possible to avoid this by inheriting directly from oprimitive and oarchive and calling their init from the derived class but calling on a derived class from a base class constructor seems like a problem and the manual does say to inherit from the impl classes. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12641 Trac 1.4.3