Boost logo

Boost Users :

Subject: Re: [Boost-users] Why doesn't boost use empty throws() list?
From: Eugene Wee (crystalrecursion_at_[hidden])
Date: 2009-04-21 16:55:08


On Wed, Apr 22, 2009 at 4:16 AM, Joseph Garvin
<joseph.h.garvin_at_[hidden]> wrote:
> For example, all the smart pointer headers have:
>
> // never throws
>
> Next to their definitions, rather than an actual "throws()". I'd guess
> this has to do with compiler compatibility, but there are already
> plenty of macro hacks for enabling/disabling details like this on a
> compiler by compiler basis.
>
> Just curious.

Read this guideline documentation for the rationale:
http://www.boost.org/development/requirements.html#Exception-specification

Regards,
Eugene Wee


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net