ev++.h fix
Richard Kojedzinszky
krichy at cflinux.hu
Mon Aug 1 11:22:26 CEST 2011
Dear ev developers,
I am using undocumented features of ev++.h, and found that in ev++.h on
line 516, the static_cast casts to a const expression, but the
ev_feed_event() function expects a non-const one. So a simple patch could
fix this:
--- ev++.h 2011-08-01 11:20:42.430785301 +0200
+++ ev++.h.fixed 2011-08-01 11:21:39.578985555 +0200
@@ -513,7 +513,7 @@
void feed_event (int revents) throw ()
{
- ev_feed_event (EV_A_ static_cast<const ev_watcher *>(this),
revents);
+ ev_feed_event (EV_A_ static_cast<ev_watcher *>(this), revents);
}
};
Regards,
Kojedzinszky Richard
More information about the libev
mailing list