
9 May
2007
9 May
'07
2:55 a.m.
On Wed, 09 May 2007 02:20:29 +0200 Mathias Gaunard <mathias.gaunard@etu.u-bordeaux1.fr> wrote:
Andrey Semashev wrote:
It could be a "strong typedef":
It could, but it isn't. Remember that int8_t etc. are from C.
However, char, signed char, and unsigned char are different types. int8_t is supposed to be typedef'd as signed char, which is a different type than char. I do not see any reason lexical_cast<int8_t>() or lexical_cast<signed char>() should be treated the same way as lexical_cast<char> since the internal C++ type mechanisms treat "char" "signed char" and "unsigned char" as completely different types...