[WayBack] C++: Thoughts on Dealing with Signed/Unsigned Mismatch – IT Hare on Soft.ware.
I have seen things like this happen in way to many places, not just C/C++:
static_assert
( -1 < 1U );
//fails!
Take away:
Never ever use explicit casts merely to get rid of warnings (whether signed/unsigned or otherwise)
A way to set various C/C++ compilers apart: [WayBack] GitHub – shafik/determine_c_or_cpp: Determine programatically C from C++ as well as various versions
Via: [WayBack] C++: Thoughts on Dealing with Signed/Unsigned Mismatch – IT Hare on Soft.ware: Kevlin Henney – Google+
–jeroen