Re: Great g++ bug! Local destructor isn't called!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Moore" == Moore, Mathew L <MooreML@xxxxxxxxxxxx> writes:

Moore> <snip>
>> BTW, in general, I've found that it's usually best NOT to put 
>> in throw 
>> specifications for functions / methods.  Ever.  (This 
>> restriction does not 
>> apply to putting in the "throw() -- I throw nothing, ever" 
>> specification.  But even that should be used with great caution.)
>> 

Moore> Just out of curiosity, what is the reasoning for this?  Is this for g++
Moore> specifically, or C++ in general?

  It must intercept thrown exceptiions and call ``unexpected()'' if
they do not match the specification.  Pure overhead.

  Including ``throw()''.  

~velco

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux