Boost logo

Boost :

From: Synge Todo (wistaria_at_[hidden])
Date: 2003-04-11 03:42:41


Dear Boosters,

The following patch to boost/config/compiler/gcc.hpp enables automatic
detection if exception handling is enabled or not in g++. I have
confirmed at least g++ 2.95.2 and 3.2 on Linux define __EXCEPTIONS by
default and undefine it with -fno-exceptions. Please apply this patch
if there's no problem.

Best regards,

Synge Todo
wistaria_at_[hidden]

diff -crN boost_1_30_0.orig/boost/config/compiler/gcc.hpp boost_1_30_0/boost/config/compiler/gcc.hpp
*** boost_1_30_0.orig/boost/config/compiler/gcc.hpp Fri Jan 31 03:13:55 2003
--- boost_1_30_0/boost/config/compiler/gcc.hpp Wed Apr 9 18:34:04 2003
***************
*** 66,68 ****
--- 66,73 ----
  # warning "Unknown compiler version - please run the configure tests and report the results"
  # endif
  #endif
+
+ // check for exceptions
+ #ifndef __EXCEPTIONS
+ # define BOOST_NO_EXCEPTIONS
+ #endif


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