Thanks, ".def("info", (void(A::*)(int))0, A_info_overloads());" does it.

Could somebody explain what the meaning of this "(void(A::*)(int))0" construct 
is? Is it a function pointer? Why the 0?
(Just now I am fine with the proposed solution, but if I even understand it, 
you will read fewer stupid question from me in this list ;-)


Hans



----- Ursprüngliche Mail ----
> Von: William Ladwig <wlad...@wdtinc.com>
> An: Development of Python/C++ integration <cplusplus-sig@python.org>
> Gesendet: Donnerstag, den 21. Mai 2009, 18:30:46 Uhr
> Betreff: Re: [C++-sig] variable argument number and 
> BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS
> 
> I haven't tried this myself, but I think all you need to do to wrap the 
> member 
> function is this:
> 
> .def("info", (void(A::*)(int))0, A_info_overloads());
> 
> Hope this helps,
> Bill



      
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to