Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-01-26 04:50:20

Robert Ramey wrote:

> Vladimir Prus wrote:
>>IOW, it's required that archives to be used with exported classes
>>are included before you do BOOST_EXPORT? Indeed, when I add
> IOW?

= In other words.

>>But it's unfortunate to get assert like above -- newbie will immediately
>>decide it's a bug in serialization library. OTOH, requiring that all
>>archive headers are included before BOOST_CLASS_EXPORT is probably
> It would be worse than overkill - it would mean that code gets
> instanticated
> for all archives whether or not they are used. Code bloat. This way I
> managed to get the right code and only the right code instantiated.

I would very much prefer if I get an exception in this case, saying that
"class is not exported to this archive". I somehow suspect that if you
fix the bug where BOOST_CLASS_EXPORT confuses different archive types,
such an exception would be trivial to add.

- Volodya

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