Boost logo

Boost :

From: Bill Wade (bill.wade_at_[hidden])
Date: 2000-05-25 07:25:54


Better get rid of that public copy constructor.

noninstantiable x = x;

class y: noninstantiable
{
public:
  y(): noninstantiable(*this){};
};

> class noninstantiable {
> private:
> noninstantiable(){}
> }; // noninstantiable
>
> is added to utility.hpp.
>
> Inherit from this class if your class should not be possible to
> instantiate.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk