Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c++ Subject: Re: To C or not to C++ Date: Wed, 24 Aug 2022 15:31:32 +0100 Organization: A noiseless patient Spider Lines: 16 Message-ID: <87wnaxsofv.fsf@bsb.me.uk> References: <2868500762@darkrealms.ca> <87iln0owgr.fsf@nosuchdomain.example.com> <87lerte0qb.fsf@nosuchdomain.example.com> <87sflmszgi.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="01f589551d39ad47f8fec28416c86c3c"; logging-data="3511500"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EBtko6vwiIjURTccKbxetBfDan3E7QsU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:vK10ILSw5vZ3LM5Y9aaKWYWteb0= sha1:TT4NnTWQOlR7+S/G4ggzYz/m56A= X-BSB-Auth: 1.1079f9600b2798ac3fde.20220824153132BST.87wnaxsofv.fsf@bsb.me.uk Xref: csiph.com comp.lang.c++:86027 Muttley@dastardlyhq.com writes: > On Wed, 24 Aug 2022 11:33:33 +0100 > Ben Bacarisse wrote: >> bool result = CombineAB(resource1, resource2, presult); > > AFAIK even C 2011 doesn't have "bool". Its defined as the (ugly) _Bool in C99. > Obviously you can typedef however. I did not show headers. C has had bool (defined in stdbool.h) ever since it got _Bool. None of the posted code is correct without a few declarations... -- Ben.