From f53925848c1fce0bb27d8a08bbb3de280cf676cf Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 31 Dec 2003 09:37:31 +0000 Subject: [PATCH] work around g++ (GCC) 3.4.0 20031230 (experimental) internal compiler error [SVN r21432] --- include/boost/python/long.hpp | 4 ++-- src/module.cpp | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/boost/python/long.hpp b/include/boost/python/long.hpp index fbf1dd85..588a3204 100644 --- a/include/boost/python/long.hpp +++ b/include/boost/python/long.hpp @@ -38,13 +38,13 @@ class long_ : public detail::long_base template explicit long_(T const& rhs) - : base(object(rhs)) + : detail::long_base(object(rhs)) { } template explicit long_(T const& rhs, U const& base) - : base(object(rhs), object(base)) + : detail::long_base(object(rhs), object(base)) { } diff --git a/src/module.cpp b/src/module.cpp index 18a5061a..963b63ee 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -33,11 +33,8 @@ BOOST_PYTHON_DECL void init_module(char const* name, void(*init_function)()) if (m != 0) { // Create the current module scope - scope current_module( - (object( - ((borrowed_reference_t*)m) - )) - ); + object m_obj(((borrowed_reference_t*)m)); + scope current_module(m_obj); handle_exception(init_function); }