boostorg / boostorg/python

Minimal Boost Python example not working

未關閉
#437 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
537
分支
223
平均合併
11 小時 22 分鐘
30 天內合併 PR
2

描述

I'm having trouble getting boost python to work with this minimal example. I've emailed the mailing list but have had no response.

I'm using C++20

```cpp
#include

#include
#include

void printStr(const std::string &testStr) {
std::cout << "BEFORE" <

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Run the shown C++20 Boost.Python module with Python 3.10 and the my_module.printStr call, then inspect the boundary around def("printStr", printStr) and the std::string conversion. Capture the build and runtime configuration needed to reproduce the fault, and confirm completion when the call prints BEFORE, the message, and AFTER without a segmentation fault.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp, python
領域
api, backend
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。