Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2005-06-24 10:22:41

--- Fernando Cacciola <fernando_cacciola_at_[hidden]> wrote:
> (A)
> My new numeric_cast<> used as an exception class:
> bad_numeric_conversion
> while the old code used
> bad_numeric_cast
> Now that the old code is superseeded by the new one,
> I adopted bad_numeric_cast, which means that
> if there is any user of the new code relying on it,
> that code will stop compiling.

Congratulations to the birth of your son! I *really* appreciate that you are
still finding the time to do the cleanup work.

Boost.Python appears to be in quite good shape, but I am getting this error:

% cxx -std strict_ansi -msg_display_number -msg_disable 186,450,1115 -tlocal
-DBOOST_PYTHON_SOURCE -I/net/legless/scratch1/rwgk/hot/boost
-I/usr/local_cci/Python-2.4.1_ticker_simple/include/python2.4 -c -o
cxx: Error: /net/legless/scratch1/rwgk/hot/boost/libs/python/src/errors.cpp,
line 36: #20
          identifier "bad_numeric_cast" is undefined
    catch(const bad_numeric_cast& x)
cxx: Info: 1 error detected in the compilation of

It is because bad_numeric_cast is now defined as
boost::numeric::bad_numeric_cast instead of boost::bad_numeric_cast. This
simple patch fixes the problem:

Index: cast.hpp
RCS file: /cvsroot/boost/boost/boost/cast.hpp,v
retrieving revision 1.25
diff -u -r1.25 cast.hpp
--- cast.hpp 24 Jun 2005 14:20:41 -0000 1.25
+++ cast.hpp 24 Jun 2005 15:20:12 -0000
@@ -102,4 +102,8 @@
 #include <boost/numeric/conversion/cast.hpp>
+namespace boost {
+ typedef boost::numeric::bad_numeric_cast bad_numeric_cast;
 #endif // BOOST_CAST_HPP

OK to commit?


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Boost list run by bdawes at, gregod at, cpdaniel at, john at