Jean-Marc, can I ask you to put a "lyxcount" routine in the support library. I'm afraid that countChar doesn't hack it because BufferVew2.C uses std::count(vector<string>::begin, vector<string>::end, string) We need a templatised version and I guess the best thing to do is to copy the gnu function.
Eg: lyxcount.[Ch] template<> lyxcount() { #ifdef HAVE_STD_COUNT use std::count #else use the gnu one #endif } Regards, Angus