VirtualBox

Changeset 28590 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 22, 2010 12:41:02 PM (15 years ago)
Author:
vboxsync
Message:

iprt/mem.h: Fixed RTMemAutoPtr + RTMEM_WRAP_TO_EF_APIS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mem.h

    r28504 r28590  
    647647 *                      This will default to RTMemRealloc.
    648648 */
    649 template <class T, void Destruct(T *) = RTMemAutoDestructor<T>, void *Allocator(void *, size_t) = RTMemRealloc >
     649template <class T,
     650          void Destruct(T *) = RTMemAutoDestructor<T>,
     651# ifdef RTMEM_WRAP_TO_EF_APIS
     652          void *Allocator(void *, size_t) = RTMemEfReallocNP
     653# else
     654          void *Allocator(void *, size_t) = RTMemRealloc
     655# endif
     656          >
    650657class RTMemAutoPtr
    651658    : public RTAutoRes<T *, Destruct, RTMemAutoNil<T> >
Note: See TracChangeset for help on using the changeset viewer.

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