ENH: add range check on findIndices (#1182)

- add compile-time detection of deprecated findIndex() function

- replace occurrences of findIndex() with the equivalent container
  method
This commit is contained in:
Mark Olesen
2019-01-25 10:47:34 +01:00
parent ad7f29466a
commit 5ec44cd51f
9 changed files with 24 additions and 27 deletions

View File

@ -92,8 +92,7 @@ void testFind(const T& val, const ListType& lst)
<<" find() = " << lst.find(val)
<<" rfind() = " << lst.rfind(val)
<<" find(2) = " << lst.find(val, 2)
<<" rfind(2) = " << lst.rfind(val, 2)
<<" findIndex = " << findIndex(lst, val) << nl
<<" rfind(2) = " << lst.rfind(val, 2) << nl
<< nl;
}