Skip to main content
0 votes
0 answers
56 views

Question Can you provide some insight what is the role of the rvalue_from_python_stage1_data convertible pointer and how is being deallocated (memory managed) in boost python? Background According to ...
user1221647's user avatar
2 votes
1 answer
56 views

I created a program that exposes class with virtual function to python using boost::python. Also I configured everything so that I could load python module that was created by boost::python and ...
Daniil Smirnov's user avatar
2 votes
0 answers
45 views

Based on Boost 1.88.0, boost::python Export Custom Exception and linked discussions I'm using the following to expose a custom C++ std::exception to python. class cException : public std::exception { ...
hallabalooza's user avatar
0 votes
1 answer
87 views

Given this class class ABC { const std::string& getid() const; /// other pure virtual methods }; class D1 : public ABC { /// override and implement virtual methods }; class D2 : public ...
MMM's user avatar
  • 982
0 votes
0 answers
52 views

I understand std::string is exposed to python by implicit converters that don't need to be registered. However, const std::string& isn't I have class Cal { const std::string& get_name() ...
MMM's user avatar
  • 982
0 votes
0 answers
86 views

I want to create a C++ library that will support both C++-based and Python-based applications running on Windows 10. The C++ application is multi-threaded, so I protect critical sections in my library ...
Anatoly G's user avatar
0 votes
0 answers
56 views

I'm currently working on a 32-bit C++ DLL in Visual Studio 2022 which uses boost::python to embed Python code. For my builds I use the include and lib directories from a full installation of 32-bit ...
Osterzine's user avatar
1 vote
1 answer
104 views

I am creating a service based on SFL (Service Framework Library). When I work from the console, it is okay, but when I run it as a service, via "sc start MyService", it issues fatal errors ...
PorisulkiP's user avatar
0 votes
0 answers
86 views

I have code in C++ that performs multiple mathematical equations. When doing it with Python, it takes a long time (about 5 minutes), and when running it in C++, it takes about 10 seconds. I want to ...
Daniel Ocanto's user avatar
0 votes
0 answers
51 views

I am following Advanced C++ / Python integration with Boost.Python tutorial to get a get a grasp on Boost-Python lib. In the example above I have: hello.cpp : #include <boost/python.hpp> #...
pippo1980's user avatar
  • 3,346
1 vote
1 answer
75 views

I am trying to create a python package from C++ code with Boost python. However when including libtorchin the code, the resulting python package shows strange errors such as Boost.Python....
ppeloton's user avatar
1 vote
0 answers
43 views

I have the following C++ code: const std::string Get(const std::map<std::string, std::string> map) { PyObject* module = PyImport_ImportModule("dummy"); boost::python::dict ...
Roy Falk's user avatar
  • 1,729
1 vote
1 answer
69 views

For some reason when exposing the below to python using Boost Python, the unique pointer constructor (the obj constructor) fails. This used to work for me before, not sure why it stopped. #pragma once ...
SpeakX's user avatar
  • 427
0 votes
0 answers
86 views

After following this page on how to install boost in Visual Studio 2022, I added the hello world for Boost.Python into the main.cpp file. However, even though the program builds and runs successfully, ...
AsianTemptation's user avatar
0 votes
0 answers
52 views

I have a python script that calls some C++ code, and in the C++ part, I want to define some static python object, for example: static boost::python::list obj. However, according to pybind11 issue 1598 ...
konchy's user avatar
  • 893

15 30 50 per page
1
2 3 4 5
90