zbackup/nocopy.hh

19 lines
369 B
C++
Raw Normal View History

// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
2013-07-18 21:33:25 +04:00
#ifndef NOCOPY_HH_INCLUDED__
#define NOCOPY_HH_INCLUDED__
/// A simple class to disallow copying of the class objects. Inherit from it to
/// use it
class NoCopy
{
public:
NoCopy() {}
private:
NoCopy( NoCopy const & );
NoCopy & operator = ( NoCopy const & );
};
#endif // NOCOPY_HH