OMNeT++ Simulation Library
6.0.3
|
#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 nullptr;}
in classes directly subclassing from noncopyable, but this is not needed in classes derived from them. For example, cSoftOwner 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-2015. 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.