{"categories":["C/C++","Python","boost"],"url":"https://randommemory.hatenablog.com/entry/2015/07/05/221423","provider_url":"https://hatena.blog","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","title":"Boost.Python(2)","description":"\u53c2\u7167\u6e21\u3057\u306a\u5f15\u6570\u3092\u6301\u3064\u30e1\u30bd\u30c3\u30c9\u3092export\u3067\u304d\u308b\u3093\u304b\u306a\u3068\u601d\u3063\u3066\u8a66\u3057\u305f\u3089\u3067\u304d\u305f\u3002 namespace hoge { class Fuga { public: void addFoo(Foo& foo); }; } BOOST_PYTHON_MODULE(test_module) { using namespace boost::python; class_<hoge::Fuga>(\"Fuga\") .def(\"addFoo\", &hoge::Fuga::addFoo) ; } \u307b\u3093\u3067\u3001 from test_module import Fuga, Foo fuga = Fuga() foo = Fo\u2026","author_url":"https://blog.hatena.ne.jp/derwind/","width":"100%","version":"1.0","height":"190","provider_name":"Hatena Blog","published":"2015-07-05 22:14:23","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2015%2F07%2F05%2F221423\" title=\"Boost.Python(2) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"derwind","image_url":null,"blog_url":"https://randommemory.hatenablog.com/","type":"rich"}