[C++-sig] Code failing to compile in boost-1.31.0
Bruno da Silva de Oliveira
nicodemus at esss.com.br
Fri Feb 27 19:15:02 CET 2004
Hi all,
This code used to compile using boost from CVS (from 05.Aug.2003, IIRC):
#include <boost/python.hpp>
#include <exception>
#include <vector>
struct A
{
std::vector<double> v;
double foo() const throw(std::out_of_range) {
return v.at(0);
}
};
using namespace boost::python;
BOOST_PYTHON_MODULE(testit)
{
class_<A>("A")
.def("foo", &A::foo)
;
}
Removing the throw declaration from A::foo:
double foo() const {
Makes the code compile. Is this a bug, or am I doing something wrong?
Thanks,
Nicodemus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20040227/206f8a79/attachment.htm>
More information about the Cplusplus-sig
mailing list