Douglas Gregor wrote: > Author: dgregor > Date: Tue Sep 15 17:30:29 2009 > New Revision: 81939 > > URL: http://llvm.org/viewvc/llvm-project?rev=81939&view=rev > Log: > When implicitly declaring operators new, new[], delete, and delete[], > give them the appropriate exception specifications. This, > unfortunately, requires us to maintain and/or implicitly generate > handles to namespace "std" and the class "std::bad_alloc". However, > every other approach I've come up with was more hackish, and this > standard requirement itself is quite the hack. > Thank you.
I'll have to audit my other exception spec code to ensure that it can handle a spec where an undefined class appears. I don't want the code to crash if you do something like this: void* operator new(size_t n) throw(something_else); Sebastian _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
