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); }