Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10749
| From | Miles Bader <miles@gnu.org> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: "bool const a( 5 )" in "Microsoft Visual Studio C++ 2010" |
| Date | 2011-10-09 09:39 +0900 |
| Message-ID | <87mxdbhub9.fsf@catnip.gol.com> (permalink) |
| References | <bool-20110928162551@ram.dialup.fu-berlin.de> <3b622$4e836745$506c0d9c$29532@news.chello.at> <j5vpo3$ges$1@node2.news.atman.pl> <76c18$4e9017a9$506c0d9c$24473@news.chello.at> |
Paul Brettschneider <paul.brettschneider@yahoo.fr> writes: > Either treat bools like a normal integer type (with a size optimized for the > use as flag, e.g. char for x86, int for RISC) or make the conversion non- > explicit. But I understand that the reasons for the standard compliant > behaviour are historical and this has been discussed at length before. One > of the terrible legacy things we have to live with. Wait, why is it "terrible"? This conversion seems perfectly reasonable. -miles -- Americans are broad-minded people. They'll accept the fact that a person can be an alcoholic, a dope fiend, a wife beater, and even a newspaperman, but if a man doesn't drive, there is something wrong with him. -- Art Buchwald
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: "bool const a( 5 )" in "Microsoft Visual Studio C++ 2010" Paul Brettschneider <paul.brettschneider@yahoo.fr> - 2011-09-28 20:28 +0200
Re: "bool const a( 5 )" in "Microsoft Visual Studio C++ 2010" Edek <edek.pienkowski@gmail.com> - 2011-09-28 20:39 +0200
Re: "bool const a( 5 )" in "Microsoft Visual Studio C++ 2010" Paul Brettschneider <paul.brettschneider@yahoo.fr> - 2011-10-08 11:28 +0200
Re: "bool const a( 5 )" in "Microsoft Visual Studio C++ 2010" Miles Bader <miles@gnu.org> - 2011-10-09 09:39 +0900
csiph-web