ENH: more generous range check for UList<bool>::operator[] specialization
- now also handles negative indices without issue. This increases its robustness for predicate type of use.
Showing
- src/OpenFOAM/containers/Lists/FixedList/FixedList.H 3 additions, 3 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedList.H
- src/OpenFOAM/containers/Lists/FixedList/FixedListI.H 3 additions, 2 deletionssrc/OpenFOAM/containers/Lists/FixedList/FixedListI.H
- src/OpenFOAM/containers/Lists/UList/UList.H 3 additions, 3 deletionssrc/OpenFOAM/containers/Lists/UList/UList.H
- src/OpenFOAM/containers/Lists/UList/UListI.H 9 additions, 6 deletionssrc/OpenFOAM/containers/Lists/UList/UListI.H
Please register or sign in to comment