Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: [QT creator on "nix"] - getting a strict 8 bit (1 byte) array with no padding Date: Thu, 21 Nov 2019 11:30:11 -0800 Organization: None to speak of Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="24eb7375dfea9bd4e6060ce0ed84a202"; logging-data="10719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19axX5RkeBZqJ/KCa8f1ceo" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:Bz0zAILayAbbkKMSeO4W4+RJovQ= sha1:0GGHspx3E6AZLkFxtymt6DX4mXs= Xref: csiph.com comp.lang.c++:69963 David Brown writes: [...] > uint8_t is always 8 bits. No more, no less. [...] Yes. Expanding on that, uint8_t is always 8 bits *if it exists*. (And in the real world, it almost always exists. You're far more likely to encounter a very old implementation that doesn't support or than to encounter one that does have those headers but has CHAR_BIT>8.) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */