On 10/25/19 7:42 AM, Robert Ramey via Boost wrote:
On 10/25/19 3:16 AM, Hans Dembinski via Boost wrote:
On 24. Oct 2019, at 18:47, Robert Ramey via Boost
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?
Yes, it does.
Hmmm - I've written a small test which seems to show that it doesn't.
#include
#include <exception> int main(int, char *[]){ #ifdef BOOST_NO_EXCEPTIONS throw std::exception(); #endif }
I'm still investigating this.
Looks like I setup my test wrong. Should be
#include