Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: how to specify an 8 byte bool ? Date: Tue, 04 Oct 2022 19:58:35 -0700 Organization: None to speak of Lines: 18 Message-ID: <87fsg3rn6s.fsf@nosuchdomain.example.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="1834250101df4f51793d17f7f9ffd955"; logging-data="3045123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2aR+ovUrh3v+sgFB1fp6V" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:dLLj89X1GMkQEtrc91eSCLCh5GE= sha1:BR2fqVByoPOTYyMQZwuLDkAv3Tw= Xref: csiph.com comp.lang.c++:86798 Lynn McGuire writes: > How do I specify an 8 byte bool ? Long long ? What for? bool is a predefined type, and its size is determined by the implementation. long long is at least 64 bits (and almost always exactly 64 bits). uint64_t and int64_t are exactly 64 bits, but are not guaranteed to exist. A "byte" is almost always 8 bits, but may be larger (see CHAR_BIT). What problem are you trying to solve? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */