#include "math_streamstr.h"
#include "math_mathmlstream.h"
-
-#include <algorithm>
+#include "support/LOstream.h"
+#include "support/lyxalgo.h"
WriteStream & operator<<(WriteStream & ws, string const & s)
{
ws.os() << s;
- ws.line() += std::count(s.begin(), s.end(), '\n');
+ ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
return ws;
}