[C++-sig] Re: Code failing to compile in boost-1.31.0
Mike Rovner
mike at nospam.com
Sat Feb 28 00:56:25 CET 2004
"Bruno da Silva de Oliveira" <nicodemus at esss.com.br> wrote in message
>This code used to compile using boost from CVS (from 05.Aug.2003, IIRC):
> double foo() const throw(std::out_of_range) {
>Removing the throw declaration from A::foo:
> double foo() const {
>Makes the code compile. Is this a bug, or am I doing something wrong?
Earlier in this list was a message about that.
AFAIR this is a compiler bug.
For now you have to cast (untested):
(double (*foo_cast)()) = &foo;
...
def("foo", foo_cast);
HTH,
Mike
More information about the Cplusplus-sig
mailing list