|
Re: set_wrapper: msg#00292python.c++
Giulio Eulisse wrote: If I have a simple class Yeah, it doesn't have support to add methods to classes yet... I will look into it. You find the "set_wrapper" syntax good enough for this purpose, or perhaps an "add_method(name, func)" would be better? Note also that the method you are trying to add must receive as first argument a reference or a pointer to the class, so your f_A function should be: void f_A(A&); Regards, Nicodemus. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Recent changes to FAQ: 00292, Nicodemus |
|---|---|
| Next by Date: | Re: [newbie] Question on embedding/extending with boost::python: 00292, Dirk Gerrits |
| Previous by Thread: | Re: set_wrapperi: 00292, David Abrahams |
| Next by Thread: | Re: set_wrapper: 00292, Giulio Eulisse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |