mirror of
https://github.com/boostorg/python.git
synced 2026-01-19 16:32:16 +00:00
Update call_method.hpp
Was missing from https://github.com/boostorg/python/pull/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.
This commit is contained in:
committed by
Stefan Seefeld
parent
f028aa4076
commit
41e208ecb5
@@ -59,7 +59,7 @@ call_method(PyObject* self, char const* name
|
||||
)
|
||||
{
|
||||
PyObject* const result =
|
||||
PyEval_CallMethod(
|
||||
PyObject_CallMethod(
|
||||
self
|
||||
, const_cast<char*>(name)
|
||||
, const_cast<char*>("(" BOOST_PP_REPEAT_1ST(N, BOOST_PYTHON_FIXED, "O") ")")
|
||||
|
||||
Reference in New Issue
Block a user