alfa_80
alfa_80

Reputation: 427

References on how to embed python classes/functions in C++ using BoostPython

May I know, if I can refer to some good website references/links that show how I can embed/wrap python classes and functions(methods) in C++(not the other way around). I found how to wrap from C++ to python(like here), but what I'm interested in, is the other way around.

Upvotes: 1

Views: 59

Answers (1)

André Anjos
André Anjos

Reputation: 5309

You can call C++ from Python. The tutorial you pointed out contains an introduction to that. Look for the section "Functions - Overloading". It shows how you can create bindings to allow your C++ call pythonic functions. The approach can also be applied to classes.

Upvotes: 1

Related Questions