]> git.lyx.org Git - features.git/blobdiff - src/Buffer.cpp
disable some tests for standard C++ features; add a line counting stream for lates...
[features.git] / src / Buffer.cpp
index 34727d28bf26ba04491fb58d1f8207b8325b2bae..cd56bce44db350d7cbb497e6f25f971c996d5bd4 100644 (file)
@@ -79,6 +79,7 @@
 #include <boost/filesystem/exception.hpp>
 #include <boost/filesystem/operations.hpp>
 
+#include <algorithm>
 #include <iomanip>
 #include <stack>
 #include <sstream>
@@ -1758,7 +1759,7 @@ void Buffer::changeRefsIfUnique(docstring const & from, docstring const & to,
        } else
                getLabelList(labels);
 
-       if (lyx::count(labels.begin(), labels.end(), from) > 1)
+       if (std::count(labels.begin(), labels.end(), from) > 1)
                return;
 
        for (InsetIterator it = inset_iterator_begin(inset()); it; ++it) {