問題タブ [opaque-pointers]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
464 参照

python - pybind11 での不透明ポインターの処理

C++ で記述された Python モジュールを Boost.Python から Pybind11 に移動しています。私の C++ コードは、不透明なポインタを持つ C ライブラリに依存しています。Boost.Python では、こちらのドキュメントを使用して、これらの不透明なポインターを処理しました

Pybind11 の同等のコードが見つかりません。参考までに、Pybind11 を使用して Python に公開する C ヘッダーを次に示します。

これは、次のように Boost.Python で公開できます。