Re: [C++-sig] Python converters for raw pointers: request for help
by Michele De Stefano other posts by this author
Nov 1 2009 11:58PM messages near this date
Re: [C++-sig] Python converters for raw pointers: request for help
|
Re: [C++-sig] Python converters for raw pointers: request for help
Thank you very much.
I had not thought to this solution. And I don't think there's a better one.
Thank you again.
Michele
2009/10/31 Ravi <lists_ravi@[...].com> :
> On Friday 23 October 2009 04:38:30 Michele De Stefano wrote:
> > typedef struct _p_Mat* Â Â Â Â Â Mat;
>
> Creating a converter to/from a raw pointer is rather tricky (due to the way
> argument type deduction handles pointers & references seamlessly, IIUC). You
> should either expose _p_Mat or wrap the raw pointer in a struct and then
> expose converters to it:
> Â struct Mat { struct _p_Mat *ptr; };
> If you come up with a better way, I'd be interested.
>
> Regards,
> Ravi
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@[...].org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
--
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://xoomer.virgilio.it/michele_de_stefano
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@[...].org
http://mail.python.org/mailman/listinfo/cplusplus-sig
Thread:
Michele De Stefano
Ravi
Michele De Stefano
Randolph Fritz
Randolph Fritz
Randolph Fritz
Michele De Stefano
Randolph Fritz
Michele De Stefano
Michele De Stefano
|