diff options
author | root <root> | 2007-12-07 20:13:08 +0000 |
---|---|---|
committer | root <root> | 2007-12-07 20:13:08 +0000 |
commit | 7f61bc3d979ef53b867172664694f8fcf9e5bdd0 (patch) | |
tree | f6b6f43698f245e91cb76ba3a1244cb0ce440035 /ev++.h | |
parent | 39ca7b64db757c30ab6f0dc5dad63206f1d5a375 (diff) |
document c++ callbacks!
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)> |