ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
Re: [C++-sig] Python converters for raw pointers: request for help
by Ravi other posts by this author
Oct 30 2009 8:50PM messages near this date
[C++-sig] Python converters for raw pointers: request for help | Re: [C++-sig] Python converters for raw pointers: request for help
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
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved