Skip to content
Snippets Groups Projects
Commit ef1df59f authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

STYLE: checkIndex for bitSet, PackedList only on FULLDEBUG (#1235)

parent 1a35a3ef
Branches
Tags
No related merge requests found
......@@ -716,10 +716,9 @@ template<unsigned Width>
inline typename Foam::PackedList<Width>::reference
Foam::PackedList<Width>::operator[](const label i)
{
// Leave enabled during testing period (MAR-2018)
// #ifdef FULLDEBUG
#ifdef FULLDEBUG
checkIndex(i);
// #endif
#endif
return reference(this, i);
}
......
......@@ -635,10 +635,9 @@ inline unsigned int Foam::bitSet::operator[](const label i) const
inline Foam::bitSet::reference Foam::bitSet::operator[](const label i)
{
// Leave enabled during testing period (MAR-2018) ... and perhaps later too
// #ifdef FULLDEBUG
#ifdef FULLDEBUG
checkIndex(i);
// #endif
#endif
return reference(this, i);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment