Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: Can anyone improve this ? Date: Mon, 17 Jan 2022 22:43:04 -0800 Organization: A noiseless patient Spider Lines: 14 Message-ID: <86sftlr1c7.fsf@linuxsc.com> References: <86ee56rzbz.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="d40b94b342f96ad99b493372f9984bf0"; logging-data="12270"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18enAr+FtZMncrOuBoQAPT8e4O+MIaMrTA=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:ubPUlN8tVBQGSc95JwJMKJeNPeY= sha1:LtdQImLD0R4UZiRnM5y6kYbG76A= Xref: csiph.com comp.lang.c++:82815 "Alf P. Steinbach" writes: > On 17 Jan 2022 19:28, Tim Rentsch wrote: > >> (Note: the cases() macro produces one 'case X:' for each >> argument X except the last one where the ':' is omitted, >> written using the standard C preprocessor, and left as an >> exercise for any ambitious readers.) > > Exercise for you: test that unrevealed macro with Visual C++. Update after my previous message. The cases() macro I wrote has now been tested with Visual C++, and it compiles there without complaint.