Boost logo

Boost Users :

From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2008-05-19 00:24:29


On Mon, May 19, 2008 at 9:37 AM, Surya Kiran Gullapalli <
suryakiran.gullapalli_at_[hidden]> wrote:

> Hello all,
> I'm trying to use ptr_set with my class Hierarchy.
>
> Base is an abstract base class with a bunch of pure virtual functions.
>
> I've some derived classes with those virtual functions defined in them.
>
> I'm using this Base class hierarchy in another class (say Other).
>
> So I've declared a member variable of Other as
>
> ptr_set<Base> m_items ;
>
> this works fine on linux with gcc-4.2 but with VS2005, I'm getting a
> compilation error, saying that It cannot instantiate base class as it is
> having pure virtual functions.
>
> Am I doing some thing wrong here ?
>
> Surya
>
>
>

The Base Class I'm talking about is derived from boost::noncopyable, with a
protected Copy Constructor



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