From 25bfd3c50f17c8fe985728fa724e2b29944c0d31 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 21 Jul 2003 02:12:04 +0000 Subject: [PATCH] Suppress a GCC 2.x ICE [SVN r19235] --- include/boost/python/to_python_value.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/python/to_python_value.hpp b/include/boost/python/to_python_value.hpp index 5ccd3134..f726ec9e 100644 --- a/include/boost/python/to_python_value.hpp +++ b/include/boost/python/to_python_value.hpp @@ -101,6 +101,11 @@ namespace detail template inline PyObject* registry_to_python_value::operator()(argument_type x) const { + typedef converter::registered r; +# if BOOST_WORKAROUND(__GNUC__, < 3) + // suppresses an ICE, somehow + (void)r::converters; +# endif return converter::registered::converters.to_python(&x); }