Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: two's complement idea Date: Wed, 22 Jan 2020 01:51:57 -0800 Organization: None to speak of Lines: 17 Message-ID: <87zhef7r9e.fsf@nosuchdomain.example.com> References: <86tv7dcfxr.fsf@linuxsc.com> <8636e7bvog.fsf@linuxsc.com> <86o8wk3zef.fsf@linuxsc.com> <8ef21e91-6984-44d1-8585-568b245c5924@googlegroups.com> <8636cm4n6l.fsf@linuxsc.com> <70e7d1bf-c994-49f4-bad4-15f386b8adca@googlegroups.com> <86imlegjnx.fsf@linuxsc.com> <86muahjf37.fsf@linuxsc.com> <276f4fb9-bf3e-4e61-aee1-43afd7466630@googlegroups.com> <7995159b-043d-48da-a452-f8b2b855888e@googlegroups.com> <93b11a6e-f41c-4ac7-9d08-d2510789e13e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="bd9d7e4dad5c7433ed70ae2ab9989f43"; logging-data="6400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tFqqs06E7RePLTOMd/kae" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:8vnmYTiwNsEG/XY9f0oL35ow1W0= sha1:O735dy7UetD+jdD9NG8XVANlCFA= Xref: csiph.com comp.lang.c++:71500 Öö Tiib writes: [...] > Macros like "min()" and "max()" from windows.h however screw up any > min and max. It does not matter if it is std::max(), std::numeric_limits::max() or thatlib::suchstruct::max(). > Now and then someone trying to run some (perfectly well-formed > and portable) code on windows wastes some time with that > nuisance, globally, ... and there are nothing to do about it. You mean nothing other than #undef min #undef max ? -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */