Skip to content

Commit 25bfd3c

Browse files
committed
Suppress a GCC 2.x ICE
[SVN r19235]
1 parent b13c902 commit 25bfd3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/boost/python/to_python_value.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ namespace detail
101101
template <class T>
102102
inline PyObject* registry_to_python_value<T>::operator()(argument_type x) const
103103
{
104+
typedef converter::registered<argument_type> r;
105+
# if BOOST_WORKAROUND(__GNUC__, < 3)
106+
// suppresses an ICE, somehow
107+
(void)r::converters;
108+
# endif
104109
return converter::registered<argument_type>::converters.to_python(&x);
105110
}
106111

0 commit comments

Comments
 (0)