Class A
{
public:
A(std::unique_ptr<double> pA) : pA_(std::move(pA)){}
private:
std::unique_ptr<double> pA_;
};
I would like to interface the above class to Python using SWIG. I am aware that SWIG 3.0 does not have special handling for std::unique_ptr yet.
I saw in another post how a unique_ptr can be handled but one particular case it fails is when the unique_ptr is passed as a value through an interface, as in the constructor of the class.
Aucun commentaire:
Enregistrer un commentaire