From c5ee39f54be667c5bf00dac08c12995f81b04c8f Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 13 Aug 2002 05:07:50 +0000 Subject: [PATCH] Bug fix [SVN r14803] --- include/boost/python/errors.hpp | 2 +- src/errors.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/python/errors.hpp b/include/boost/python/errors.hpp index 390f3b61..4c47aca8 100644 --- a/include/boost/python/errors.hpp +++ b/include/boost/python/errors.hpp @@ -20,7 +20,7 @@ struct BOOST_PYTHON_DECL argument_error : error_already_set {}; // Handles exceptions caught just before returning to Python code. // Returns true iff an exception was caught. -BOOST_PYTHON_DECL bool handle_exception_impl(function0 const&); +BOOST_PYTHON_DECL bool handle_exception_impl(function0); template bool handle_exception(T f) diff --git a/src/errors.cpp b/src/errors.cpp index 882d2917..05e40658 100644 --- a/src/errors.cpp +++ b/src/errors.cpp @@ -17,7 +17,7 @@ namespace boost { namespace python { // IMPORTANT: this function may only be called from within a catch block! -BOOST_PYTHON_DECL bool handle_exception_impl(function0 const& f) +BOOST_PYTHON_DECL bool handle_exception_impl(function0 f) { try {