C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Switched class names in 27.1.1 (in C++/1998)

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards
View previous topic :: View next topic  
Author Message
Daryle Walker
Guest





PostPosted: Sun May 02, 2004 7:44 pm    Post subject: Switched class names in 27.1.1 (in C++/1998) Reply with quote



Sorry if this has already been reported. I think TC1 has come out, but
this is for the original 1998 version (so it may have already been
fixed).

In section 27.1.1 [lib.iostream.limits.imbue], I think the names
"ios_base" and "basic_ios" have been switched. The "ios_base" version
of "imbue" can't induce a call to the "basic_ios" version since the
inheiritance is the wrong way and the two versions are _not_
"virutal"-ly related. It doesn't make sense. If the names are
reversed, then it would make sense, especially since sec. 27.4.4.2 para.
8-9 already specifies it!

[On a separate note, doesn't 27.1.1 mean that a new stream-buffer class
can't call the "imbue" of a parent(s)? I mean "parent" either by
inheiritance (usual case) or containment (filter).]

--
Daryle Walker
Mac, Internet, and Video Game Junkie
dwalker07 AT snet DOT net

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]

Back to top
Pete Becker
Guest





PostPosted: Mon May 03, 2004 4:36 pm    Post subject: Re: Switched class names in 27.1.1 (in C++/1998) Reply with quote



Daryle Walker wrote:
Quote:

In section 27.1.1 [lib.iostream.limits.imbue], I think the names
"ios_base" and "basic_ios" have been switched. The "ios_base" version
of "imbue" can't induce a call to the "basic_ios" version since the
inheiritance is the wrong way and the two versions are _not_
"virutal"-ly related. It doesn't make sense. If the names are
reversed, then it would make sense

Yup, looks like the class names got interchanged. It's an editorial
change, and I've fixed it for the next (March, 2005) working paper.
Thanks.

Quote:
especially since sec. 27.4.4.2 para.
8-9 already specifies it!

No, they say two different things. These two paragraphs tell you what
basic_ios::imbue does; [lib.iostream.limits.imbue] tell you that nothing
else does those things.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]


Back to top
llewelly
Guest





PostPosted: Mon May 03, 2004 4:39 pm    Post subject: Re: Switched class names in 27.1.1 (in C++/1998) Reply with quote



[email]dwalker07 (AT) snet (DOT) net[/email] (Daryle Walker) writes:

Quote:
Sorry if this has already been reported. I think TC1 has come out, but
this is for the original 1998 version (so it may have already been
fixed).
[snip]


See anubis.dkuug.dk for lists of issues, defect reports, and their
(proposed) resolutions. The defect reports marked as 'TC1' are
those whose resolutions made it into TC1 .

Also, Andrew Koenig keeps a pdf of the differences between C++1998
and C++2003 on his website:
http://www.acceleratedcpp.com/authors/koenig/c++std/revisions.pdf

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language, library and standards All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.