|
Boost : |
Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2011-03-23 16:55:30
Emil Dotchevski <emildotchevski <at> gmail.com> writes:
>
> On Tue, Mar 22, 2011 at 12:16 PM, Krzysztof Czainski <1czajnik <at> > >
> > What about boost/detail/no_exceptions_support.hpp? Could that file be moved
> > to boost/exception for public use? I use it, but don't feel comfortable with
> > it being in the detail directory.
>
> This header is news to me. :) Maybe something like this could become a
> documented part of Boost Exception.
>
> I don't understand why the macros defined in no_exceptions_support.hpp
> expand to if("") { } else if(!"") { } etc. in BOOST_NO_EXCEPTIONS
> builds. Expanding to if(true) { } else if(false) { } seems more
> appropriate to me.
I seem to remember that if(true) and similar triggered warnings
(Ã la "condition is always true") in some compilers.
JoaquÃn M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk