Boost logo

Boost Users :

From: codeur_at_[hidden]
Date: 2005-11-28 06:47:08


Hello,

I know the question has already been asked
(http://groups.google.com/group/boost-list/browse_thread/thread/9e1bcbd7c4f76cb8/7cfd47f06f01bf71?lnk=st&q=serialize+template+abstract+boost&rnum=1&hl=en#7cfd47f06f01bf71)
but without answers. So I retry..

Is it possible to serialize an object that inherits from a templated
abstract class ?

For instance :

template<typename T>
class base
{
};

template<typename T>
class Impl : public base<T>
{
};

int main(/* ... */)
{
  base *b = new Impl(type);
  // how can we serialize b ?
}

Thanks for your help.


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