id summary reporter owner description type status milestone component version severity resolution keywords cc 2508 Serialization emits lots of warnings for MSVC7.1 (non-polymorphic / shared_ptr) Chard Robert Ramey "The serialization code emits many warnings if a non-polymorphic type is serialized via shared_ptr. The following code demonstrates the issue: {{{ #include #include #include #include struct X { template void serialize(T &ar, const unsigned int version) {} }; typedef boost::shared_ptr X_P; void test_ser() { X_P x_p; std::ifstream ifstr(""test.txt""); boost::archive::text_iarchive ar(ifstr); ar & x_p; } }}} Adding a virtual destructor to '''X''' causes the warnings to disappear, i.e. the serialization code ''wants'' the types to be polymorphic. This appears to be an issue when building with MSVC (though only tested with 7.1) because gcc 4.3.2 does not emit the warnings. " Bugs closed Boost 1.38.0 serialization Boost 1.36.0 Problem fixed non-polymorphic shared_ptr warnings MSVC 7.1