|
Boost : |
Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Vicente BOTET (vicente.botet_at_[hidden])
Date: 2011-03-22 13:43:11
> Message du 22/03/11 02:40
> De : "Robert Kawulak"
> A : boost_at_[hidden]
> Copie à :
> Objet : [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
>
> >From Boost Users ML:
>
> > From: Hochhaus, Andrew
> > I would like to use boost with BOOST_NO_EXCEPTIONS [1] and the g++
> > -fno-exceptions flag. However, it appears that some spots in boost
> > library code:
> >
> > a) throw exceptions with the "raw" throw keyword [instead of
> > BOOST_THROW_EXCEPTION or boost::throw_exception]
> > b) use try ... catch blocks without "#ifnef BOOST_NO_EXCEPTIONS" guards
>
> Wouldn't it be a good idea to add checks for these to the inspect tool? Also, non-empty exception specifications are discouraged by
> Boost guidelines - should appropriate checks be added too?
Hi,
I guess that the best we can do is to build the lib and the tests with exceptions disabled. No need to update the inspect tool. The inspect tool is there to check things that can not be tested in an easy way with the compiler. Take also in account that inspect is not there to check for guidelines, but for rules.
Best,
Vicente
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk