diff --git a/src/object/function.cpp b/src/object/function.cpp index 2dad6ab1..64dc3846 100644 --- a/src/object/function.cpp +++ b/src/object/function.cpp @@ -565,11 +565,7 @@ BOOST_PYTHON_DECL void add_to_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 - */ +namespace { struct bind_return { @@ -614,8 +610,7 @@ extern "C" function_call(PyObject *func, PyObject *args, PyObject *kw) { PyObject* result = 0; - handle_exception( - detail::bind_return(result, static_cast(func), args, kw)); + handle_exception(bind_return(result, static_cast(func), args, kw)); return result; }