mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user