[C++-sig] variable argument number and BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS

Hans Roessler hansroessler at yahoo.de
Thu May 21 23:00:25 CEST 2009


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 <wladwig at wdtinc.com>
> An: Development of Python/C++ integration <cplusplus-sig at 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



      


More information about the Cplusplus-sig mailing list