2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 16:52:15 +00:00

work around g++ (GCC) 3.4.0 20031230 (experimental) internal compiler error

[SVN r21432]
This commit is contained in:
Ralf W. Grosse-Kunstleve
2003-12-31 09:37:31 +00:00
parent eedc88b56a
commit f53925848c
2 changed files with 4 additions and 7 deletions

View File

@@ -38,13 +38,13 @@ class long_ : public detail::long_base
template <class T>
explicit long_(T const& rhs)
: base(object(rhs))
: detail::long_base(object(rhs))
{
}
template <class T, class U>
explicit long_(T const& rhs, U const& base)
: base(object(rhs), object(base))
: detail::long_base(object(rhs), object(base))
{
}

View File

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