Changeset 11001 in vbox for trunk/include
- Timestamp:
- Jul 30, 2008 5:42:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/autores.h
r11000 r11001 19 19 */ 20 20 21 #ifndef ___iprt_autores_ __22 #define ___iprt_autores_ __21 #ifndef ___iprt_autores_h 22 #define ___iprt_autores_h 23 23 24 24 #include <iprt/types.h> 25 25 #include <iprt/mem.h> 26 26 #include <iprt/assert.h> 27 #include <iprt/cpputils.h> 27 28 29 /** 30 * A simple class used to prevent copying and assignment. 31 * 32 * Inherit from this class in order to prevent automatic generation 33 * of the copy constructor and assignment operator in your class. 34 */ 35 class RTCNonCopyable 36 { 37 protected: 38 RTCNonCopyable() {} 39 ~RTCNonCopyable() {} 40 private: 41 RTCNonCopyable(RTCNonCopyable const &); 42 RTCNonCopyable const &operator=(RTCNonCopyable const &); 43 }; 28 44 29 45 … … 83 99 */ 84 100 template <class T, void Destruct(T) = RTAutoResDestruct<T>, T NilRes(void) = RTAutoResNil<T> > 85 class RTAutoRes : public stdx::non_copyable 101 class RTAutoRes 102 : public RTCNonCopyable 86 103 { 87 104 protected:
Note:
See TracChangeset
for help on using the changeset viewer.