diff --git a/example/demo_fast_archive.cpp b/example/demo_fast_archive.cpp index 64b1ff1e..0f28ef7b 100644 --- a/example/demo_fast_archive.cpp +++ b/example/demo_fast_archive.cpp @@ -16,6 +16,7 @@ #define BOOST_ARCHIVE_SOURCE #include #include +#include // include template definitions for base classes used. Otherwise // you'll get link failure with undefined symbols @@ -24,9 +25,6 @@ #include #include -#include -#include - using namespace boost::archive; /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 @@ -94,6 +92,9 @@ public: {} }; +// required by export +BOOST_SERIALIZATION_REGISTER_ARCHIVE(fast_binary_oarchive) + /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // "Fast" input binary archive. This is a variation of the native binary class fast_binary_iarchive : @@ -157,6 +158,9 @@ public: {} }; +// required by export +BOOST_SERIALIZATION_REGISTER_ARCHIVE(fast_binary_iarchive) + int main( int argc, char* argv[] ) { const int a[3] = {1, 2, 3};