Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cNonCopyable Class Reference

#include <cNonCopyable.h>

Inheritance diagram for Gray::cNonCopyable:
Gray::cHandlePtr< _TYPE_HAND > Gray::cOSHandle Gray::cThreadLockBase Gray::cThreadLockRWS GrayLib::cNetSocketBase GrayLib::cSQLBase GrayLib::cVarTuple GrayLib::cXmlNode

Protected Member Functions

 cNonCopyable () noexcept
 Force the use of Factory creation via protected constructor. More...
 
 ~cNonCopyable () noexcept
 

Detailed Description

Block C++ usage of default copy constructor. base a class on this with protected type. http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three

Note
don't use inheritance for templates defined in DLL/SO that might have statics. Use the NonCopyable_IMPL instead. Avoid GRAYCORE_LINK for templates.

Constructor & Destructor Documentation

◆ cNonCopyable()

Gray::cNonCopyable::cNonCopyable ( )
inlineprotectednoexcept

Force the use of Factory creation via protected constructor.

◆ ~cNonCopyable()

Gray::cNonCopyable::~cNonCopyable ( )
inlineprotectednoexcept

The documentation for this class was generated from the following file: