Path: csiph.com!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.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: Wed, 20 Nov 2019 22:33:17 -0800 Organization: None to speak of Lines: 13 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="23093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195N6SA6UPpMFwqKDg8+5FC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:oW0dejZ5uhGgKlDcisB+nok5Xq8= sha1:aY6+rAucO4C2ecWucseinwSQuIQ= Xref: csiph.com comp.lang.c++:69948 Soviet_Mario writes: > Il 20/11/19 19:55, Soviet_Mario ha scritto: > Uhm, from some search, it seems that a "pragma pack" exist. > I still have to read it, though pragma pack is a common extension, but it's non-standard. If you're worried enough about portability that you're unwilling to assume CHAR_BIT==8, you probably don't want to depend on extensions. -- 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 */