|
Boost : |
Subject: Re: [boost] [constrained-value] with 1.43.0
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-05-06 13:55:52
----- Original Message -----
From: "Neal Becker" <ndbecker2_at_[hidden]>
To: <boost_at_[hidden]>
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk