Boost logo

Boost :

Subject: Re: [boost] BOOST_NOEXCEPT macro?
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-02-17 15:02:21

Nevin Liber wrote:
> On 17 February 2011 11:45, Dave Abrahams <dave_at_[hidden]> wrote:
> > On Thu, Feb 17, 2011 at 11:36 AM, Alexander Fokin
> > <apfokin_at_[hidden]> wrote:
> > > As I remember, throw() means the same thing as nothrow
> > > only in MSVC. For example, under GCC you'll have to use
> > > __attribute__((nothrow)).
> >
> > 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.
> noexcept has runtime semantics as well, doesn't it? If you are
> in a function declared noexcept(true) and an exception tries to
> escape, std::terminate is called.

I think they were referring to "noexcept" specifically (and thus to noexcept(false)).

Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

Boost list run by bdawes at, gregod at, cpdaniel at, john at