Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2004-05-09 14:29:00

On Sun, 9 May 2004 11:08:53 -0700, Robert Ramey wrote
> Dave Harris wrote:
> That's why pointers to primitive types have been made non-
> serializable by default.
> And there is a very simple solution - use a wrapper to make the long
> its own type.

Seems like there is another solution as well. The user writing the
serialization code can write the code to dereference the pointer when writing
and to construct new storage on reading. Yes, it's a bit different than the
usual serializaiton code, but then a class that has a pointer like this is a
bit unusual and if it is the unusual case, won't be a big problem.


Boost list run by bdawes at, gregod at, cpdaniel at, john at