From aef987d832f0f6d70e31762a2683e1db13dec9b5 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 9 May 2002 02:00:22 +0000 Subject: [PATCH] work around OSF linker problem [SVN r13768] --- include/boost/python/errors.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/python/errors.hpp b/include/boost/python/errors.hpp index 02fbeff9..fdf8e11a 100644 --- a/include/boost/python/errors.hpp +++ b/include/boost/python/errors.hpp @@ -35,12 +35,12 @@ inline void handle_exception() handle_exception(detail::rethrow); } -BOOST_PYTHON_DECL PyObject* expect_non_null(PyObject* x); +BOOST_PYTHON_DECL PyObject* expect_non_null_impl(PyObject* x); template -T* expect_non_null(T* x) +inline T* expect_non_null(T* x) { - return (T*)expect_non_null((PyObject*)x); + return (T*)expect_non_null_impl((PyObject*)x); } BOOST_PYTHON_DECL void throw_argument_error();