--- rxvt-unicode/src/rxvtutil.h 2014/10/23 22:39:40 1.59 +++ rxvt-unicode/src/rxvtutil.h 2014/10/28 09:05:33 1.60 @@ -63,6 +63,10 @@ void operator delete (void *p, size_t s); }; +// alas new/delete cannot be specified as inline in C++11 (see 17.6.4.6) +void *operator new (size_t s) throw (std::bad_alloc); +void operator delete (void *p) throw (); + struct stringvec : simplevec { ~stringvec () @@ -89,19 +93,6 @@ }; #endif -inline void * -operator new (size_t size) throw (std::bad_alloc) -{ - // TODO: use rxvt_malloc - return malloc (size); -} - -inline void -operator delete (void *p) throw () -{ - free (p); -} - template struct auto_ptr {