Open ossama-othman opened 6 years ago
Use of unsigned integers such as std::size_t for array indices is error prone. Consistently use signed integers instead and assert() if the array index is invalid instead.
std::size_t
assert()
See Eric Neibler's comment on array indices for a simple explanation.
Use of unsigned integers such as
std::size_t
for array indices is error prone. Consistently use signed integers instead andassert()
if the array index is invalid instead.See Eric Neibler's comment on array indices for a simple explanation.