Changeset 11028
- Timestamp:
- 07/31/08 16:06:39 (4 months ago)
- Files:
-
- trunk/include/iprt/autores.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/autores.h
r11015 r11028 32 32 * Inherit from this class in order to prevent automatic generation 33 33 * of the copy constructor and assignment operator in your class. 34 * @note r=michael This is a rather generic class which is useful in a lot of 35 * situations - does it belong here? 34 36 */ 35 37 class RTCNonCopyable … … 49 51 * 50 52 * @warning This template *must* be specialised for the types it is to work with. 53 * @note r=michael This could also be used in other contexts to get the value 54 * of the nil handle for a type. 51 55 */ 52 56 template <class T> … … 57 61 } 58 62 63 /** Specialisation of RTAutoResNil for RTFILE */ 64 template <> 65 inline RTFILE RTAutoResNil(void) 66 { 67 return NIL_RTFILE; 68 } 59 69 60 70 /** … … 69 79 NOREF(aHandle); 70 80 } 71 72 81 73 82 /** … … 89 98 * @param T The type of the resource. 90 99 * @param Destruct The function to be used to free the resource. 91 * This is *not* optional, the default is there for92 * working around compiler issues (?).100 * This parameter must be supplied if there is no 101 * specialisation of RTAutoDestruct available for @a T. 93 102 * @param NilRes The function returning the NIL value for T. Required. 94 * This is *not* optional, the default is there for95 * working around compiler issues (?).103 * This parameter must be supplied if there is no 104 * specialisation of RTAutoResNil available for @a T. 96 105 * 97 106 * @note The class can not be initialised directly using assignment, due

