C++ (Qt)class SomeClass { void* operator new (std::size_t size) throw (std::bad_alloc); void* operator new (std::size_t size, const std::nothrow_t& nothrow_constant) throw(); void* operator new (std::size_t size, void* ptr) throw();};
C++ (Qt)class OtherClass{ //... SomeClass sc;};//...OtherClass *oc = new OtherClass;