mardi 22 septembre 2015

How to extend methods in SWIG that are not part of a class?

I have a bunch of utility functions that are not part of any class, which return a unique_ptr<MyGraph>

I have been using the %extend directive for other similar cases where the function is part of a class. But %extend is specifically used to extend classes.

How can I extend my class-less utility functions to return a raw pointer?

Aucun commentaire:

Enregistrer un commentaire