Add Python support for std::unique_ptr inputs

Equivalent to Java/C# implementation.
This commit is contained in:
William S Fulton 2022-07-16 13:14:40 +01:00
commit c3c061cac8
8 changed files with 103 additions and 9 deletions

View file

@ -53,7 +53,7 @@ struct KlassInheritance : virtual Klass {
}
};
#if defined(SWIGJAVA) || defined (SWIGCSHARP)
#if defined(SWIGJAVA) || defined (SWIGCSHARP) || defined(SWIGPYTHON)
std::string takeKlassUniquePtr(std::unique_ptr<Klass> k) {
return std::string(k->getLabel());
}