CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 #ifndef CLHEP_NONCOPYABLE_H 00002 #define CLHEP_NONCOPYABLE_H 00003 00004 // ====================================================================== 00005 // 00006 // noncopyable - classes directly/indirectly inheriting won't be copyable 00007 // 00008 // Author: W. E. Brown; 2010-03-05 00009 // 00010 // ====================================================================== 00011 00012 00013 #include "CLHEP/Utility/defs.h" 00014 00015 00016 namespace CLHEP { 00017 00018 class noncopyable 00019 { 00020 protected: 00021 noncopyable () throw () { } 00022 ~noncopyable() throw () { } 00023 00024 private: 00025 noncopyable ( noncopyable const & ); // = delete; 00026 noncopyable & operator = ( noncopyable const & ); // = delete; 00027 }; // noncopyable 00028 00029 } // namespace CLHEP 00030 00031 #endif // CLHEP_NONCOPYABLE_H 00032 // 00033 // ======================================================================