Utility class, to make it impossible to call the operator= and copy constructor of any class derived from it. More...
#include <cobject.h>
Utility class, to make it impossible to call the operator= and copy constructor of any class derived from it.
NOTE: dup()
must be redefined as {copyNotSupported(); return NULL;}
in classes directly subclassing from noncopyable, but this is not needed in classes derived from them. For example, cDefaultList is noncopyable, so cModule and cSimpleModule no longer need to redefine dup()
.
This class is from boost, which bears the following copyright:
(C) Copyright Boost.org 1999-2003. Permission to copy, use, modify, sell and distribute this software is granted provided this copyright notice appears in all copies. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.