]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetGraphics.cpp
disable some tests for standard C++ features; add a line counting stream for lates...
[features.git] / src / insets / InsetGraphics.cpp
index cfb0e326bb381fe8ada9d911745b8a08a56c9f5f..1203d27188d0403ead0365ea58b68ae39c4416e7 100644 (file)
@@ -76,7 +76,6 @@ TODO
 
 #include "support/convert.h"
 #include "support/filetools.h"
-#include "support/lyxalgo.h" // count
 #include "support/lyxlib.h" // sum
 #include "support/lstrings.h"
 #include "support/os.h"
@@ -85,6 +84,7 @@ TODO
 #include <boost/bind.hpp>
 #include <boost/tuple/tuple.hpp>
 
+#include <algorithm>
 #include <sstream>
 
 
@@ -823,7 +823,7 @@ int InsetGraphics::latex(Buffer const & buf, odocstream & os,
        LYXERR(Debug::GRAPHICS) << "InsetGraphics::latex outputting:\n"
                                << latex_str << endl;
        // Return how many newlines we issued.
-       return int(lyx::count(latex_str.begin(), latex_str.end(),'\n'));
+       return int(std::count(latex_str.begin(), latex_str.end(),'\n'));
 }