Is wchar_t guaranteed to be larger than char?
From: Mark A. Gibbs (x_gibbsmark_at_rogers.com_x)
Date: 03/29/05
- Next message: marbac: "Re: get system info? (linux/unix)"
- Previous message: Malte Starostik: "Re: May a template argument be a friends of the template class?"
- Next in thread: John Carson: "Re: Is wchar_t guaranteed to be larger than char?"
- Reply: John Carson: "Re: Is wchar_t guaranteed to be larger than char?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Mar 2005 21:32:47 -0500
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/indij@rogers.com/ (temporary website)
- Next message: marbac: "Re: get system info? (linux/unix)"
- Previous message: Malte Starostik: "Re: May a template argument be a friends of the template class?"
- Next in thread: John Carson: "Re: Is wchar_t guaranteed to be larger than char?"
- Reply: John Carson: "Re: Is wchar_t guaranteed to be larger than char?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|