
----- Original Message ----- From: "Neal Becker" <ndbecker2@gmail.com> To: <boost@lists.boost.org> Sent: Thursday, May 06, 2010 4:57 PM Subject: [boost] [constrained-value] with 1.43.0
I found my code using constrained_value compiles with boost-1.42.0, but not with 1.43.0. Rather mysterious error message:
/usr/local/src/boost.hg/boost/constrained_value/constrained.hpp:64: error: 'template<class ExceptionType> struct boost::constrained_value::throw_exception' is not a function, /usr/local/src/boost.hg/boost/throw_exception.hpp:74: error: conflict with 'template<class E> void boost::throw_exception(const E&)' /usr/local/src/boost.hg/boost/throw_exception.hpp:54: error: in call to 'throw_exception' scons: *** [mod/fixed_pt.os] Error 1
The following code has been introduced in 1.43. Can you can move it to the end of the file and checkagain (it is using throw_exception which is not yet declared). HTH, Vicente #if !defined( BOOST_EXCEPTION_DISABLE ) namespace exception_detail { template <class E> void throw_exception_( E const & x, char const * current_function, char const * file, int line ) { throw_exception( set_info( set_info( set_info( enable_error_info(x), throw_function(current_function)), throw_file(file)), throw_line(line))); } } #endif