Boost logo

Boost :

From: helmut.zeisel_at_[hidden]
Date: 2001-10-31 15:55:56


--- In boost_at_y..., "Fernando Cacciola" <fcacciola_at_g...> wrote:

>
> Last week I presented an improved implementation of numeric_cast<>.
> Though this discussion affects its interface, since you are using
it, I'll
> be glad if you take a look at:
>

As I understand, the basic interface of numeric_cast<>
remains the same; you provide, however,
much better possibilities for specialization.

This is definitely what I need.

The current version, however, does not compile under
Linux/GCC 3.0.1; I include the beginning of the list
of error messages for compiling your numeric_cast_test.cpp below.
I was not yet able to figure out what the problem is.

Helmut

------ Error messages ---
In file included from ../../boost/detail/numeric_range_detail.hpp:21,
                 from ../../boost/numeric_range.hpp:21,
                 from ../../boost/numeric_cast_traits.hpp:21,
                 from ../../boost/numeric_cast.hpp:22,
                 from numeric_cast_test.cpp:5:
../../boost/detail/meta_programing_tools.hpp:96: parse error before
`::' token
../../boost/detail/meta_programing_tools.hpp:110: parse error before
`::' token
../../boost/detail/meta_programing_tools.hpp:124: parse error before
`::' token
In file included from ../../boost/numeric_cast.hpp:22,
                 from numeric_cast_test.cpp:5:
../../boost/numeric_cast_traits.hpp:218: looser throw specifier for
`virtual
   const char* boost::negative_overflow::what() const'
/usr/local/include/g++-v3/exception:56: overriding `virtual const
char*
   std::exception::what() const throw ()'
../../boost/numeric_cast_traits.hpp:225: looser throw specifier for
`virtual
   const char* boost::positive_overflow::what() const'
/usr/local/include/g++-v3/exception:56: overriding `virtual const
char*
   std::exception::what() const throw
()'


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