Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,090 of 33,346    |
|    woodbrian77@googlemail.com to Francis Glassborow    |
|    Re: compilers, endianness and padding    |
|    26 May 13 00:10:57    |
      On Saturday, May 25, 2013 10:50:02 PM UTC, Francis Glassborow wrote:       >       > And what do you do about systems where a char has more than 8 bits?       > And, yes. they do exist.       >              #if CHAR_BIT != 8       #error Only 8 bit char supported       #endif              I think I got that from James Kanze. It's kind of a poor man's answer       until there's more time to work on that.              > Indeed but the C++ type system is not designed for portability at       > that level. There has never been a requirement for portability at       > that level.              I guess you're saying that int8_t and friends aren't part of the C++       type system. But they work fine as far as I can tell. They may not       be guaranteed, but it seems like they are widely available.              Brian       Ebenezer Enterprises       http://webEbenezer.net                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca