[PATCH]: libev-3.8; ev++.h bug and warning fixes.

Konstantin Lepa konstantin.lepa at gmail.com
Sat Aug 29 14:09:47 CEST 2009

>> On Fri, Aug 28, 2009 at 08:41:43PM +0400, Konstantin Lepa <konstantin.lepa at gmail.com 
>> > wrote:
>>>> After fixing your code, it compiles fine on my system, and will  
>>>> do so
>>>> on
>>>> freebsd as well.
>>> Because you call method_thunk, but i use method_noargs_thunk.  Look:
>> No, it compiles because I use the _documented_ and _published_ API,  
>> while
>> you are using something else. The documentation is clear that your  
>> code
>> uses the wrong prototype.
> Well, you are right. But you don't wish to correct an obvious error  
> in a code. In any case, thanks for spent time.

I have changed the mind. You aren't right. Because  "template<class K,  
void (K::*method)()>void set (K *object) throw ()" is part of public  
interface of struct base. Any watcher inherits the struct. Public  
interface of classes is part of documentation for any project. It's C+ 
+, not C.

Once again thanks.

More information about the libev mailing list