From 5d30ddac22c872e1413b3ea874edffc28f10ad8d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 4 Feb 2002 14:49:43 +0000 Subject: [PATCH] cxx 6.5 fixes [SVN r12689] --- include/boost/python/detail/unwind_type.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/boost/python/detail/unwind_type.hpp b/include/boost/python/detail/unwind_type.hpp index add3615a..e8ccd0c8 100644 --- a/include/boost/python/detail/unwind_type.hpp +++ b/include/boost/python/detail/unwind_type.hpp @@ -141,9 +141,12 @@ inline typename Generator::result_type unwind_type(type*p = 0, Generator* = 0) { BOOST_STATIC_CONSTANT(int, indirection - = (pointer_ * is_pointer::value) - | (reference_ * is_reference::value) - | (reference_to_pointer_ * is_reference_to_pointer::value)); + = (is_pointer::value ? pointer_ : 0) + + (is_reference_to_pointer::value + ? reference_to_pointer_ + : is_reference::value + ? reference_ + : 0)); return unwind_helper2::execute((U(*)())0,(Generator*)0); }