|
Boost : |
Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-03-24 20:49:55
On Thu, Mar 24, 2011 at 4:50 PM, Dave Abrahams <dave_at_[hidden]> wrote:
> At Thu, 24 Mar 2011 11:27:23 -0700,
> Emil Dotchevski wrote:
>>
>> > That said, "libraries should generally use BOOST_THROW_EXCEPTION" is a
>> > good rule for Boost, and I wouldn't mind having something like it in
>> > the inspect tests, provided that libraries with a legitimate reason
>> > not to use it can be registered as exceptions to the rule.
>>
>> Maybe I'm missing something but what is an example of such a legitimate reason?
>
> For example, "it buys nothing, because the library can't really work
> as coded without exception support." Such is the case for
> Boost.Python, I believe.
Whether it makes the library useful in BOOST_NO_EXCEPTIONS builds is
best left for the user of the library to decide. At any rate, you gain
nothing from not using BOOST_THROW_EXCEPTION.
Besides, even if the library remains useless in BOOST_NO_EXCEPTIONS
builds, I wouldn't say that BOOST_THROW_EXCEPTION buys nothing.
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk