RSS pybind11 - 1/1 Blog

pybind11 - 1/1

Mixing pybind11 modules


My scenario was the following: expose a C++ class in one C++ module exported with pybind11, then create a function in a another C++ module returning a result of this class. The solution for that is described in the following issue Return type that is implemented in another library with another set of python bindings, which links to this part of the documentation Custom type casters. and implemented in this module somewhere in cbenchmark_dot.cpp.


RSS pybind11 - 1/1 2017-09 (1) 2018-08 (2) 2019-02 (1) 2019-03 (1)