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

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to