------- Comment #6 from rwgk at yahoo dot com  2007-11-26 02:17 -------
The patch below makes the Boost.Python compilation work again with
gcc svn trunk revision 130411. This solves my problem. :-)

The g++ change could be tough for people who have to keep using older
boost versions for one reason or another. I think it would be best
to accept the old code if -fpermissive is given, at least on the
gcc 4.3 line.

Index: function.cpp
===================================================================
--- function.cpp        (revision 41350)
+++ function.cpp        (working copy)
@@ -565,7 +565,11 @@
 }


-namespace
+namespace detail
+/* Cannot be anonymous namespace:
+     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34094
+     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34229
+ */
 {
   struct bind_return
   {
@@ -610,7 +614,8 @@
     function_call(PyObject *func, PyObject *args, PyObject *kw)
     {
         PyObject* result = 0;
-        handle_exception(bind_return(result, static_cast<function*>(func),
args, kw));
+        handle_exception(
+          detail::bind_return(result, static_cast<function*>(func), args,
kw));
         return result;
     }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34229

Reply via email to