6 Nov
2022
6 Nov
'22
10:46 p.m.
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.