BOOST_CLASS_EXPORT_* macros are not working like register_type()
问题 I am getting an unregistered_class exception when I serialize out a derived object to a file and serialize in from that file to a base class pointer when I use the boost export macros. When I replace the macros with the archive register_type() methods, it works. I need to use the macros because the application size and complexity makes the register_type() methods impractical. I am using RHEL 7.4, boost 1.53, and C++11. The classes are in shared libraries. Here is sample code to demonstrate