Re: Partial serialization of a program

Gavin Lambert via Boost-users <[email protected]>
Newsgroups gmane.comp.lib.boost.user
Message-ID <[email protected]>
On 4/11/2022 22:40, Markus Lavin wrote:
> Ideally though it would be nice if, by some C++ magic, one could tell 
> Boost serialization that pointers to this particular class require 
> special handling (i.e. using the map to get the unique id) and then 
> serialize them as normal in the serialize template. That way not all 
> users of the framework of my program would need to know deeper details 
> of the serialization strategy.

That's simple enough: just write a smart pointer class that contains 
that deserialization lookup logic.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.