Ai
1 Star 0 Fork 40

hefq343/boost_1

forked from src-openEuler/boost
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
boost-1.78-python-Update-call_method-hpp.patch 990 Bytes
一键复制 编辑 原始数据 按行查看 历史
Liu Zixian 提交于 2022-02-03 21:16 +08:00 . fix build warnings
From 1dc6d74f2d673b7b82dd02ff8cdaf04b60fb5ff8 Mon Sep 17 00:00:00 2001
From: Denis Arnaud <denis.arnaud_github@m4x.org>
Date: Sun, 15 Aug 2021 17:05:31 +0200
Subject: [PATCH] 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.
---
boost/python/call_method.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boost/python/call_method.hpp b/boost/python/call_method.hpp
index 424077eab4..2f360791d7 100644
--- a/boost/python/call_method.hpp
+++ b/boost/python/call_method.hpp
@@ -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") ")")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hefq343/boost_1.git
git@gitee.com:hefq343/boost_1.git
hefq343
boost_1
boost_1
openEuler-22.03-LTS-SP4

搜索帮助