Serialize Polymorph Interface
问题 I am looking to serialize a polymorphed class from its associated interface. Here is what I have found this question, which seems to do what I need to: How to create a interface for serialization in Boost Serialization? However the serialization is done from the class itself and not the interface. What I have got so far: INetworkMessage.hpp using PolyArchive = boost::variant< boost::archive::polymorphic_oarchive &, boost::archive::polymorphic_iarchive&>; class INetworkMessage { public: