libev development

Richard Kojedzinszky krichy at cflinux.hu
Mon Jun 11 09:57:08 CEST 2012


Dear Marc,

As that function is a template, it is only instantiated when used. I think 
I've sent you sample programs regarding the issue, but I'll attach another 
one:

#include <ev++.h>

int main()
{
 	ev::io x;

 	x.feed_event(ev::READ);

 	return 0;
}

Regards,

Kojedzinszky Richard

On Sun, 10 Jun 2012, Marc Lehmann wrote:

> On Sun, Jun 10, 2012 at 09:34:51PM +0200, Richard Kojedzinszky <krichy at cflinux.hu> wrote:
>> There was another short patch, to chang feed_event in ev++.h line 516
>> to use static_cast<ev_watcher*>, removing the const qualifier.
>> Without that the code compiles, but with const gcc produces an error.
>
> gcc compiles the code just fine with or without const - which version of gcc
> does not compile that code? do you have an example program? Are you sure you
> are not calling that method (which would be a bug in whatever calls it).
>
> note that a number of c++ programs use that file (e.g. rxvt-unicode) without
> any trouble.
>
> --
>                The choice of a       Deliantra, the free code+content MORPG
>      -----==-     _GNU_              http://www.deliantra.net
>      ----==-- _       generation
>      ---==---(_)__  __ ____  __      Marc Lehmann
>      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
>      -=====/_/_//_/\_,_/ /_/\_\
>



More information about the libev mailing list