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.