Skip to content

Commit 41e208e

Browse files
da115115stefanseefeld
authored andcommitted
Update call_method.hpp
Was missing from boostorg#320 I've tested it on one of my projects with (that patch on) Boost.Python/Boost 1.76.0 and it works well. Without that patch, there is a deprecation error.
1 parent f028aa4 commit 41e208e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/python/call_method.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ call_method(PyObject* self, char const* name
5959
)
6060
{
6161
PyObject* const result =
62-
PyEval_CallMethod(
62+
PyObject_CallMethod(
6363
self
6464
, const_cast<char*>(name)
6565
, const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")

0 commit comments

Comments
 (0)