Boost logo

Boost :

From: Lars Gullik Bjønnes (larsbj_at_[hidden])
Date: 2005-03-07 21:13:19


In cpp_regex_traits.cpp line 76 there is a re-throw. This does not work
when compiling without exceptions.

I see that gcc have a

#ifndef __EXCEPTIONS
# define __throw_exception_again
#else
# define __throw_exception_again throw
#endif

for this case.

Something similar should work for boost as well.

To allow compiling I did this:

--- ../../boost/boost/throw_exception.hpp 2004-08-05 17:24:43.000000000 +0200
+++ boost/throw_exception.hpp 2005-03-08 03:04:27.066704153 +0100
@@ -32,6 +32,8 @@
 
 void throw_exception(std::exception const & e); // user defined
 
+#define BOOST_THROW_EXCEPTION_AGAIN
+
 #else
 
 template<class E> inline void throw_exception(E const & e)
@@ -39,6 +41,8 @@
     throw e;
 }
 
+#define BOOST_THROW_EXCEPTION_AGAIN throw
+
 #endif
 
 } // namespace boost

-- 
	Lgb

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