Article View: comp.std.c++
Article #1805Re: true/false literal std question
From: mfinney
Date: Tue, 22 Aug 1995 09:23
Date: Tue, 22 Aug 1995 09:23
27 lines
1153 bytes
1153 bytes
Distribution: In <ROBERT.95Aug21123621@mirage.visix.com>, robert@Visix.COM (Robert Mollitor) writes: >But if the preprocessor doesn't "understand" 'true' and 'false', then what >stops someone from defining > > #define true 1 > #define false 0 That does not work correctly because if you have a function... void foo(bool); void foo(int); and you call... foo(true) the wrong function will be called. Michael Lee Finney --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<MATT.95Aug22012318@Austern>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!MattReferences:
<40jjuu$qnk@mujibur.inmind.com> <4135i2$744@engnews2.Eng.Sun.COM> <ROBERT.95Aug21123621@mirage.visix.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt From: mfinney@inmind.com Newsgroups: comp.std.c++ Subject: Re: true/false literal std question Date: 22 Aug 1995 09:23:18 GMT Organization: In Mind, Inc. Approved: Matt@Austern Message-ID: <MATT.95Aug22012318@Austern> References: <40jjuu$qnk@mujibur.inmind.com> <4135i2$744@engnews2.Eng.Sun.COM> <ROBERT.95Aug21123621@mirage.visix.com> Reply-To: mfinney@inmind.com NNTP-Posting-Host: austern.hip.berkeley.edu