Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-16 01:04:17

Li Lirong wrote:

> Hi,
> In the serialization library, when classes are never serialized directly
> but rather through a pointer to the base class, the user need to call
> register_type so that the archive contains information about the derived
> classes.
> However, sometimes those derived classes are implemented in another
> dynamic loaded (dll/so) module. The type of the derived classes will
> not be known at compile time. How can cope with this? Does the library
> provide any facilities to help the user in this situation?

There's BOOST_CLASS_EXPORT. Take a look at

In a previous version there were some problems with it, but at least for
text_archives it worked. Robert might have fixed those problems though.

- Volodya

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