Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-01-03 23:50:16


"Robert Ramey" <ramey_at_[hidden]> writes:

>> (just call a little stub function in the TU from main()).
>
> I can already hear the howling in the distance. If one can do this
> the it would be just as easy to explcitly the all the derived types
> at the beginning of an archive and avoid BOOST_CLASS_EXPORT
> all together.

Not at all; that couples the archive to the types being serialized,
and requires one explicit registration (a relatively complicated
thing) per type being serialized as opposed to one call to a void
function (simple) per TU including EXPORT.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk