Skip to content

Commit f539258

Browse files
author
Ralf W. Grosse-Kunstleve
committed
work around g++ (GCC) 3.4.0 20031230 (experimental) internal compiler error
[SVN r21432]
1 parent eedc88b commit f539258

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

include/boost/python/long.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ class long_ : public detail::long_base
3838

3939
template <class T>
4040
explicit long_(T const& rhs)
41-
: base(object(rhs))
41+
: detail::long_base(object(rhs))
4242
{
4343
}
4444

4545
template <class T, class U>
4646
explicit long_(T const& rhs, U const& base)
47-
: base(object(rhs), object(base))
47+
: detail::long_base(object(rhs), object(base))
4848
{
4949
}
5050

src/module.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ BOOST_PYTHON_DECL void init_module(char const* name, void(*init_function)())
3333
if (m != 0)
3434
{
3535
// Create the current module scope
36-
scope current_module(
37-
(object(
38-
((borrowed_reference_t*)m)
39-
))
40-
);
36+
object m_obj(((borrowed_reference_t*)m));
37+
scope current_module(m_obj);
4138

4239
handle_exception(init_function);
4340
}

0 commit comments

Comments
 (0)