VirtualBox

Changeset 11095

Show
Ignore:
Timestamp:
08/04/08 12:57:31 (4 months ago)
Author:
vboxsync
Message:

iprt: The cpputils.h version of RTCNonCopyable doesn't fit the naming scheme used in IPRT and cpptutils.h includes a bit of throwing and rethrowing which makes g++ upset when exceptions are disabled.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/autores.h

    r11028 r11095  
    3232 * Inherit from this class in order to prevent automatic generation 
    3333 * 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? 
    3634 */ 
    3735class RTCNonCopyable 
     
    5149 * 
    5250 * @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. 
    5551 */ 
    5652template <class T> 
     
    9995 * @param   Destruct    The function to be used to free the resource. 
    10096 *                      This parameter must be supplied if there is no 
    101  *                      specialisation of RTAutoDestruct available for @a T.  
     97 *                      specialisation of RTAutoDestruct available for @a T. 
    10298 * @param   NilRes      The function returning the NIL value for T. Required. 
    10399 *                      This parameter must be supplied if there is no 
    104  *                      specialisation of RTAutoResNil available for @a T.  
     100 *                      specialisation of RTAutoResNil available for @a T. 
    105101 * 
    106102 * @note    The class can not be initialised directly using assignment, due 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy