mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +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:
@ -70,7 +70,7 @@ int main(int argc, char *argv[])
|
||||
};
|
||||
Pout<< list2 << endl;
|
||||
|
||||
Info<< findIndex(list2, vector(3, 4, 5)) << endl;
|
||||
Info<< list2.find(vector(3, 4, 5)) << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user