2009/05/05

Memo on Boost Serialization & Asio

register_type() is required on building a polymorphic pointer from oarchive. In my situation, BOOST_CLASS_EXPORT and BOOST_CLASS_EXPORT_GUID are no effects. Why is unknown..

And, some typical bugs occur;

  • such polymorphic pointer requires virtual destructor.
  • Because the operator << of iostream deals string, zero value is not written.
These are easy mistake.

No comments:

How to set parameters to debugging program on Visual Studio 2019 with CMake

Solution: MSDN Sometimes the "Debug and Launch Settings for CMake" bottun is disabled. In this case, change to the target view. ...