Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2008-02-26 22:46:38


This works just fine.

The only problem is that the boost export macro doesn't work so you have
instanciate the underlying code explicitly.

Robert Ramey

Richard Crossley wrote:
> Hi,
>
> I've been searching the archives but am not finding an answer... Is
> there any way to serialise D<> via a pointer to its base B when the
> types used to parameterise D<> are not known in advance? i.e. How do
> I register D<> with the serialisation library?
>
> For Example...
>
> struct B{
> virtual void fn() =0;
> };
>
> template<typename T>
> struct D : B{
> virtual void fn(){};
> };
>
> B* b = new D<char>();
> ....
> anArchive & b;
>
>
> Thanks,
>
> Richard.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net