logo       

set_wrapper: msg#00281

python.c++

Subject: set_wrapper

If I have a simple class

class A {}

and a function

void f_A(void){...}

pyste's set_wrapper(A.f,"f_A") should, IMHO, generate

class_< A >("A", init< >())
.def(init< const A & >())
.def("f", &f_A)
;
even if A::f() is not present. Is there a reason why it doesn't?

Thanks in advance,
Giulio


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise