X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Flyxalgo.h;h=8bf8bbc54191ffd8c1450eea4918a459c8671625;hb=c6b17b7094c42ff6bf96e3452f69023c724d15b7;hp=410bf7593351c3cb6fb5df8d8c96e2811491df53;hpb=b596330093d3fa5d80e3ffc185771df77a02393b;p=lyx.git diff --git a/src/support/lyxalgo.h b/src/support/lyxalgo.h index 410bf75933..8bf8bbc541 100644 --- a/src/support/lyxalgo.h +++ b/src/support/lyxalgo.h @@ -84,31 +84,6 @@ void eliminate_duplicates(C & c) } -#if __cplusplus >= 201103L -using std::next; -#else -/// Replacement of std::next for older compilers -template -inline It next(It i, Diff n = 1) -{ - std::advance(i, n); - return i; -} -#endif - - -#if __cplusplus >= 201103L -using std::prev; -#else -/// Replacement of std::prev for older compilers -template -inline It prev(It i, Diff n = 1) -{ - std::advance(i, -n); - return i; -} -#endif - } // namespace lyx #endif // LYX_ALGO_H