Re:C++11 and Boost - Succinct like Python
by mikeash on Wednesday October 31, 2012 @06:46PM
(#4725279)
How can a C-style cast from char to unsigned possibly be "less safe", and how could a different style of cast be more safe?
[ Parent
| on HN ]
Re:C++11 and Boost - Succinct like Python
by daivd on Thursday November 01, 2012 @06:15AM
(#4726865)
In this case it obviously doesn't matter, but in the general case it is better to be explicit on which type of cast you are doing. That way the compiler can statically stop you from doing stupid things. Read the link I gave.