VirtualBox

Changeset 39792 in vbox for trunk


Ignore:
Timestamp:
Jan 18, 2012 11:10:00 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75753
Message:

iprt/mem.h: Use RT_THROW not throw to indicate exceptions thrown by a method. (MSC v14+ bitches.)

File:
1 edited

Legend:

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

    r36569 r39792  
    718718# if defined(RT_EXCEPTIONS_ENABLED)
    719719#  define RTMEMEF_NEW_AND_DELETE_OPERATORS() \
    720         void *operator new(size_t cb) throw(std::bad_alloc) \
     720        void *operator new(size_t cb) RT_THROW(std::bad_alloc) \
    721721        { \
    722722            void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \
     
    730730            return RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \
    731731        } \
    732         void *operator new[](size_t cb) throw(std::bad_alloc) \
     732        void *operator new[](size_t cb) RT_THROW(std::bad_alloc) \
    733733        { \
    734734            void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \
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