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:
@@ -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))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user