Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 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 ...
2 votes
1 answer
59 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 ...
2 votes
0 answers
50 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 { ...
0 votes
1 answer
88 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
87 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 ...
1 vote
1 answer
109 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 ...
0 votes
0 answers
88 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 ...
0 votes
0 answers
54 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> #...
1 vote
1 answer
77 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....
1 vote
0 answers
46 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
75 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 ...
0 votes
0 answers
92 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, ...
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
0 votes
1 answer
203 views

pip3 install py3exiv2 gives error: In file included from src/exiv2wrapper.cpp:27: src/exiv2wrapper.hpp:33:10: fatal error: 'exiv2/exiv2.hpp' file not found 33 | #include "exiv2/...

15 30 50 per page
1
2 3 4 5
...
90

AltStyle によって変換されたページ (->オリジナル) /