From 37b2bdba79b654fb84abdb0cf10790a426863274 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 30 Nov 2003 21:08:19 +0000 Subject: [PATCH] Workaround gcc-2.x ICE [SVN r21016] --- include/boost/python/converter/shared_ptr_from_python.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/python/converter/shared_ptr_from_python.hpp b/include/boost/python/converter/shared_ptr_from_python.hpp index 5b7d5441..acca976d 100644 --- a/include/boost/python/converter/shared_ptr_from_python.hpp +++ b/include/boost/python/converter/shared_ptr_from_python.hpp @@ -22,10 +22,10 @@ struct shared_ptr_from_python private: static void* convertible(PyObject* p) { - return p == Py_None - ? p - : converter::get_lvalue_from_python(p, registered::converters) - ; + if (p == Py_None) + return p; + + return converter::get_lvalue_from_python(p, registered::converters); } static void construct(PyObject* source, rvalue_from_python_stage1_data* data)