I'm getting the following warnings
../std_lib_facilities.h:112:8: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (i<0||size()<=i) throw Range_error(i);
~^~
../std_lib_facilities.h:118:8: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (i<0||size()<=i) throw Range_error(i);
~^~
Which if you look at the code make perfect sense as i is declared unsigned. Is there some reason it's written that way or can I remove the offending test?
Thanks