|
Boost : |
From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2007-05-08 22:55:49
On Wed, 09 May 2007 02:20:29 +0200
Mathias Gaunard <mathias.gaunard_at_[hidden]> 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...
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk