diff options
Diffstat (limited to 'ev++.h')
-rw-r--r-- | ev++.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -56,10 +56,10 @@ namespace ev { (obj->*method) (*self, revents); } - template<void (*function)(watcher &w, int)> + template<void (*function)(watcher &w, int), void *data = 0> void set () { - set_ (0, function_thunk<function>); + set_ (data, function_thunk<function>); } template<void (*function)(watcher &w, int)> |