8 Sep
2005
8 Sep
'05
7:37 a.m.
Hmm - I the referenced email referred to shared_ptr. Your case is covered in the documenation. Reference/Serializable/Pointers. Robert Ramey Bruno MartÃnez wrote:
Hi.
This has been asked before here http://lists.boost.org/boost-users/2005/05/11706.php but I didn't understand the workaround.
What I want is to serialize class B where
class A { ... };
template<...> class B : public A { ... };
when I have an A*.
The workarounds proposed were using RTTI non portably, or registering the classes each time. How would such solution look like?
Regards, Bruno