Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2019-10-25 14:44:54


On 10/25/19 2:38 AM, Mathias Gaunard via Boost wrote:
> On Thu, 24 Oct 2019 at 17:47, Robert Ramey via Boost
> <boost_at_[hidden]> wrote:
>>
>> I want to detect whether or not the -no_exception compile time flag has
>> been used on gcc/clang. Will BOOST_NO_EXCEPTIONS do this? If not is
>> there something I can use?
>
> A look at the code or a simple Google search allows to answer these questions.
> Boost.Config will define BOOST_NO_EXCEPTIONS if it is not already
> defined and it detects that the compiler has exceptions disabled.

I couldn't see this from looking at the implementation in config.hpp.
Maybe I missed it.

I think that config.hpp will detect if the compiler doesn't support
exceptions. But it doesn't look that it detects when the exceptions are
suppressed via the -no-exceptions switch.

>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk