
17 Feb
2011
17 Feb
'11
5:45 p.m.
On Thu, Feb 17, 2011 at 11:36 AM, Alexander Fokin <apfokin@gmail.com> wrote:
I believe it's not that simple.
As I remember, throw() means the same thing as nothrow only in MSVC. For example, under GCC you'll have to use __attribute__((nothrow)).
Correct me if I'm wrong.
You're right. In general, throw() has runtime semantics and can produce runtime overhead in the form of increased executable size and occasionally reduced speed. noexcept has only compile-time semantics. -- Dave Abrahams BoostPro Computing http://www.boostpro.com