We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7b1e4e commit c5ee39fCopy full SHA for c5ee39f
2 files changed
include/boost/python/errors.hpp
@@ -20,7 +20,7 @@ struct BOOST_PYTHON_DECL argument_error : error_already_set {};
20
21
// Handles exceptions caught just before returning to Python code.
22
// Returns true iff an exception was caught.
23
-BOOST_PYTHON_DECL bool handle_exception_impl(function0<void> const&);
+BOOST_PYTHON_DECL bool handle_exception_impl(function0<void>);
24
25
template <class T>
26
bool handle_exception(T f)
src/errors.cpp
@@ -17,7 +17,7 @@
17
namespace boost { namespace python {
18
19
// IMPORTANT: this function may only be called from within a catch block!
-BOOST_PYTHON_DECL bool handle_exception_impl(function0<void> const& f)
+BOOST_PYTHON_DECL bool handle_exception_impl(function0<void> f)
{
try
0 commit comments