boost-python
Extending embedded Python in C++ - Design to interact with C++ instances
There are several packages out there that help in automating the task of writing bindings between C\\C++ and other languages.[详细]
2023-03-04 22:43 分类:问答Boost Python and vectors of shared_ptr
I\'ve read how to expose normal vectors to python in boost python, but I want to know how to expose and make use of a vector. For instance, I have a vector of shared_ptrs as follows:[详细]
2023-03-04 18:00 分类:问答Boost.Python returning by internal reference
Given two classes: 开发者_如何学Pythonclass B { // ... }; class A { public: B& b() { return *b_; }[详细]
2023-03-04 06:28 分类:问答Boost.Python and PyQt
How do 开发者_如何学PythonI pass objects like QSize and QPoint between C++ and Python using Boost.Python?This code worked.I wasn\'t able to return QSize &c. by internal reference though, but retur[详细]
2023-03-03 19:04 分类:问答Instantiating shared_ptr's in boost::python
I had a question about boost python. I\'ve been working on exporting some functionality of a project into boost python, and I haven\'t found a way to solve the following problem:[详细]
2023-03-03 12:35 分类:问答Python method resolution mystery
I can\'t figure out why this program is failing. #!/usr/bin/env python from __future__ import division, print_function[详细]
2023-03-03 11:40 分类:问答Exporting non-default-constructible classes with Boost.Python
How do I export a non-default-constructible class with Boost.Python? This code: class EventHandle { public:[详细]
2023-03-03 06:00 分类:问答Linking error Boost.Python with stlport as stdlib
I\'m trying to create C++ extensions for python.My C++ code relies on STLPort 5.1.0.I\'ve compiled boost.python with stdlib=stlport.This occurs in my compiler which is Microsoft Visual Studio 2005.[详细]
2023-02-26 23:19 分类:问答PyCUDA / Copperhead doesn't appear to recognise 64-bit machines
Two problems I\'m having with copperhead at the minute, which I suspect are related. Running a sample file (samples/axpy.py) generated lots of little warnings, but this one stood out.[详细]
2023-02-25 08:32 分类:问答Link failures building TagPy on Windows
I\'m a hapless Linux coder trying to get one of my projects working in Windows 7, which involves building TagPy. I\'m using MSVC2008 and Python 2.7.1 (x86 version).[详细]
2023-02-24 17:21 分类:问答