[C++-sig] set_wrapper

Giulio Eulisse giulio.eulisse at cern.ch
Tue May 27 19:04:00 CEST 2003


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





More information about the Cplusplus-sig mailing list