
4 Jan
2007
4 Jan
'07
4:50 a.m.
"Robert Ramey" <ramey@rrsd.com> 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