Skip to content

Commit d2517fa

Browse files
author
Ralf W. Grosse-Kunstleve
committed
g++ 4.3.0 compatibility (4.3.0 20071125 (experimental))
[SVN r41404]
1 parent 8cd4ff8 commit d2517fa

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/object/function.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,11 @@ BOOST_PYTHON_DECL void add_to_namespace(
565565
}
566566

567567

568-
namespace
568+
namespace detail
569+
/* Cannot be anonymous namespace:
570+
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34094
571+
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34229
572+
*/
569573
{
570574
struct bind_return
571575
{
@@ -610,7 +614,8 @@ extern "C"
610614
function_call(PyObject *func, PyObject *args, PyObject *kw)
611615
{
612616
PyObject* result = 0;
613-
handle_exception(bind_return(result, static_cast<function*>(func), args, kw));
617+
handle_exception(
618+
detail::bind_return(result, static_cast<function*>(func), args, kw));
614619
return result;
615620
}
616621

0 commit comments

Comments
 (0)