… | |
… | |
3342 | ev::io iow; |
3342 | ev::io iow; |
3343 | iow.set <myclass, &myclass::io_cb> (&obj); |
3343 | iow.set <myclass, &myclass::io_cb> (&obj); |
3344 | |
3344 | |
3345 | =item w->set (object *) |
3345 | =item w->set (object *) |
3346 | |
3346 | |
3347 | This is an B<experimental> feature that might go away in a future version. |
|
|
3348 | |
|
|
3349 | This is a variation of a method callback - leaving out the method to call |
3347 | This is a variation of a method callback - leaving out the method to call |
3350 | will default the method to C<operator ()>, which makes it possible to use |
3348 | will default the method to C<operator ()>, which makes it possible to use |
3351 | functor objects without having to manually specify the C<operator ()> all |
3349 | functor objects without having to manually specify the C<operator ()> all |
3352 | the time. Incidentally, you can then also leave out the template argument |
3350 | the time. Incidentally, you can then also leave out the template argument |
3353 | list. |
3351 | list. |