VirtualBox

Changeset 11095 in vbox


Ignore:
Timestamp:
Aug 4, 2008 10:57:31 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34012
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette