Files
2016-06-09 16:46:55 +02:00

34 lines
761 B
C++

#ifndef CLHEP_NONCOPYABLE_H
#define CLHEP_NONCOPYABLE_H
// ======================================================================
//
// noncopyable - classes directly/indirectly inheriting won't be copyable
//
// Author: W. E. Brown; 2010-03-05
//
// ======================================================================
#include "CLHEP/Utility/defs.h"
namespace CLHEP {
class noncopyable
{
protected:
noncopyable () throw () { }
~noncopyable() throw () { }
private:
noncopyable ( noncopyable const & ); // = delete;
noncopyable & operator = ( noncopyable const & ); // = delete;
}; // noncopyable
} // namespace CLHEP
#endif // HEP_NONCOPYABLE_H
//
// ======================================================================