summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev++.h b/ev++.h
index d7b4502..fea0ac1 100644
--- a/ev++.h
+++ b/ev++.h
@@ -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)>