I try to use C function that need Object ** parameter.
I have Object pointer in std::unique_ptr structure.
Is it possible to get Object ** from std::unique_ptr<Object>?
I tried with:
std::unique_ptr<Object> obj(Object_new());
cfunction(&(obj.get()));
but it doesn't work :(
error: lvalue required as unary ‘&’ operand
Aucun commentaire:
Enregistrer un commentaire