Article View: comp.sys.mac.programmer.codewarrior
Article #599Re: template default argument bug?
From: Bjarne Stroustrup
Date: Fri, 06 Feb 2004 23:53
Date: Fri, 06 Feb 2004 23:53
26 lines
2213 bytes
2213 bytes
Edward Chew <ekc-noreply@lgl.kos.net> wrote in message news:<4023cd0a$1@news.kos.net>... > Howard Hinnant wrote: > > > I think you've found a bug in Bjarne's book. I looked through his > > errata and didn't see this issue already listed. If you contact him > > with this information and if you are indeed the first to report it, then > > I'm sure he will be very grateful. > > What? My C++ Bible has failed me? Say it isn't so! ;-) I wonder how > may editions this affects? This is the one I have: > > The C++ Programming Language: Special Edition > Bjarn Stroustrup > Copyright 2000 by AT&T > ISBN 0-201-70073-5 > > The offending example was in section 13.4.1 (page 340). Things are a little bit mor ecomplicated than that. The restriction in the standard was basically an oversight. You'll find the problem mentioned on my "issues" page. The committee has voted to correct this (i.e. make my book correct), but the vote can't take effect until a new revision of the standard are issued. My view is that you found a bug in the standard (that the committee already has corrected :-) - Bjarne Stroustrup; http://www.research.att.com
Technical Details
Message-ID:
<188b3370.0402061553.7cefc0f7@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<4022896d$1@news.kos.net> <hinnant-B84BAE.17430705022004@syrcnyrdrs-03-ge0.nyroc.rr.com> <4023cd0a$1@news.kos.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,7802dbc009c85cd X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,7802dbc009c85cd X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2004-02-06 15:53:45 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: bs@research.att.com (Bjarne Stroustrup) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: template default argument bug? Date: 6 Feb 2004 15:53:45 -0800 Organization: http://groups.google.com Lines: 26 Message-ID: <188b3370.0402061553.7cefc0f7@posting.google.com> References: <4022896d$1@news.kos.net> <hinnant-B84BAE.17430705022004@syrcnyrdrs-03-ge0.nyroc.rr.com> <4023cd0a$1@news.kos.net> NNTP-Posting-Host: 128.194.146.45 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1076111625 32253 127.0.0.1 (6 Feb 2004 23:53:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Feb 2004 23:53:45 +0000 (UTC)