M
Mark A. Gibbs
Good day,
I'm asking this just out of curiosity, but it just occurred to me to
reread the section on wchar_t (3.9.1.5), and unless I'm reading it
wrong, there is no guarantee that wchar_t is larger than char.
What I'm seeing is that it has to have the same characteristics as its
underlying type, which can be any integral type. The integral types are
bool, char (plain, signed, unsigned), short, int and long (signed and
unsigned, plus presumably long long) (3.9.1.7). So the underyling type
could be signed char?
--
Mark A. Gibbs (aka. Indi)
Administrator
#c++ on irc.Rizon.net
http://ca.geocities.com/[email protected]/
(temporary website)
I'm asking this just out of curiosity, but it just occurred to me to
reread the section on wchar_t (3.9.1.5), and unless I'm reading it
wrong, there is no guarantee that wchar_t is larger than char.
What I'm seeing is that it has to have the same characteristics as its
underlying type, which can be any integral type. The integral types are
bool, char (plain, signed, unsigned), short, int and long (signed and
unsigned, plus presumably long long) (3.9.1.7). So the underyling type
could be signed char?
--
Mark A. Gibbs (aka. Indi)
Administrator
#c++ on irc.Rizon.net
http://ca.geocities.com/[email protected]/
(temporary website)