zbackup/nocopy.hh

20 lines
471 B
C++
Raw Normal View History

2014-12-11 10:50:15 +03:00
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// 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
2013-07-18 21:33:25 +04:00
/// 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