|
Boost Users : |
From: Gavin Lambert (boost_at_[hidden])
Date: 2022-11-06 22:46:48
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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net