From: Howard Hinnant (hinnant_at_[hidden])
Date: 2001-09-18 10:58:13
On Tuesday, September 18, 2001, at 11:45 AM, jeremy_at_[hidden] wrote:
> Well I was thinking that sometime in the future I might change B so
> that it no longer inherits A. I didn't think I should have to
> remember that B got its noncopyable-ness from A.
> For now under MSVC I am using a noncopyable2 which does indeed simply
> inherit noncopyable.
At the risk of boost::blasphemy, the low-tech alternative is beginning
to sound pretty good to me (for your situation):
class MyClass // noncopyable
MyClass(const MyClass&); // Not defined
MyClass& operator=(const MyClass&); // Not defined
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk