X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Flyxalgo.h;h=d1aa023e1e918dd9ecfe2ad4799245f9070598fe;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=410bf7593351c3cb6fb5df8d8c96e2811491df53;hpb=b596330093d3fa5d80e3ffc185771df77a02393b;p=lyx.git diff --git a/src/support/lyxalgo.h b/src/support/lyxalgo.h index 410bf75933..d1aa023e1e 100644 --- a/src/support/lyxalgo.h +++ b/src/support/lyxalgo.h @@ -84,30 +84,10 @@ 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