Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-12-14 12:11:04


>> (and given how it's
>> defined and used, there seems to be no way of overriding via
>> template specialization).

There is ALWAYS a way. If nothing else works you can wrap your type in its
own class/struct and serialize that with inline funcitions. In this way you
can do things like serializing a pointer to an integer which would normally
not possible as the implementation level is primitive.

>> Perhaps save_enum_type and save_array_type could be put into a
>> separate header (out of the archive/detail and maybe into
>> boost/serialization along with vector.hpp, etc)?

arrays have been broken out in the 1.35 version.

Robert Ramey


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