[Geany-Devel] Let's move to C++98 - Re: Lets move to C99
Matthew Brush
mbrush at xxxxx
Sun Sep 1 02:53:23 UTC 2013
On 13-08-31 07:42 PM, Lex Trotman wrote:
> [...]
>
>>
>>>
>> Just for fun I wrote some theoretical code that could be used in a program
>> like Geany to compare styles between various C's and C++'s (note: none of
>> it tested).
>>
>> http://pastebin.geany.org/**gYFMO/ <http://pastebin.geany.org/gYFMO/>
>
>
>
> As discussed on IRC here's another way of doing the C++98/03, marked with
> +es. http://pastebin.geany.org/AzbMV/
>
Or alternatively in c++11 :)
for_each(begin(App::instance().windows()),
end(App::instance().windows()),
[] (Window &win) {
for_each(begin(win.documents()),
end(win.documents(),
[] (Document &doc) {
// do stuff with each document
}
);
}
);
Cheers,
Matthew Brush
More information about the Devel
mailing list