ossama-othman / MaRC

MaRC - Map Reprojections and Conversions
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Consider using signed integer for array indices. #45

Open ossama-othman opened 6 years ago

ossama-othman commented 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.

See Eric Neibler's comment on array indices for a simple explanation.