.. blogpost:: :title: Mixing pybind11 modules :keywords: pybind11, C++ :date: 2019-03-19 :categories: pybind11 My scenario was the following: expose a C++ class in one C++ module exported with :epkg:`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 `_.