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

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

 



<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.)
> 


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

Thanks,
--Matt



> If C++ did exception specifications like how Java does them, 
> then that'd be 
> a different story.
> 
> --Eljay
> 
> 


[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