X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Flyxalgo.h;h=d1aa023e1e918dd9ecfe2ad4799245f9070598fe;hb=8d640dc77608bedddb5b00982c23665584f52d21;hp=9e44838a795233bf70df36686f3d9eacea068d1a;hpb=329eae5605d7bc40a53ebafa817470d9739ff632;p=lyx.git diff --git a/src/support/lyxalgo.h b/src/support/lyxalgo.h index 9e44838a79..d1aa023e1e 100644 --- a/src/support/lyxalgo.h +++ b/src/support/lyxalgo.h @@ -84,30 +84,10 @@ void eliminate_duplicates(C & c) } -#ifdef LYX_USE_CXX11 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 -#ifdef LYX_USE_CXX11 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