Boost logo

Boost :

From: jfo60540 (jfo60540_at_[hidden])
Date: 2002-01-18 18:08:43

Hi -

I am using boost.python from boost 1_26 with g++ 3.02 and python 2.2
under solaris 2.7. I have had quite a bit of success wrapping numerous
classes, but I cannot figure how to handle ++ exceptions. The simple
example in the documentation i.e.

  python::handle_exception(); // Deal with the exception for Python

does not compile, apparently because handle_exception() expects a void
(*)() argument. Can someone please give me a short example to
demonstrate the correct way of handling c++ exceptions with
boost.python ?

Thanks !

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