Newsgroups: comp.lang.c++.moderated
From: "Bo Persson" <b...@gmb.dk>
Date: Fri, 2 May 2008 04:43:30 CST
Local: Fri, May 2 2008 6:43 am
Subject: Question on library issue #581, using a sentry in flush()
This would have gone to comp.std.c++, had it been active.
The resolution to issue 581 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2578.html#581 requires that basic_ostream::flush creates a sentry object to verify However, for streams with the unit_buf flag set, like std::err, the std::cerr << std::flush; or even std::cerr << "Some message" << std::endl; Have I missed something here? Bo Persson -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: comp.lang.c++.moderated
From: Francis Glassborow <francis.glassbo...@btinternet.com>
Date: Fri, 2 May 2008 12:46:04 CST
Local: Fri, May 2 2008 2:46 pm
Subject: Re: Question on library issue #581, using a sentry in flush()
Bo Persson wrote: Is it possible to find out what happened to comp.std.c++? Even better > This would have gone to comp.std.c++, had it been active. would be to revive it as it provided an important and useful service (and as we get closer to C++0x, it becomes more important to have a newsgroup that deals with standard issues rather than coding ones) -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: comp.lang.c++.moderated
From: Daniel Krügler <daniel.krueg...@googlemail.com>
Date: Sat, 3 May 2008 06:13:27 CST
Local: Sat, May 3 2008 8:13 am
Subject: Re: Question on library issue #581, using a sentry in flush()
On 2 Mai, 12:43, "Bo Persson" <b...@gmb.dk> wrote:
No, I agree with your analysis. Additionally the proposed resolution references the wrong section by saying in [ostream.unformatted]/7: "Behaves as an unformatted output function (as described in because 27.6.2.6.1/p.1 describes the semantic of *formatted* Greetings from Bremen, Daniel Krügler -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: comp.lang.c++.moderated
Date: Thu, 8 May 2008 21:43:27 CST
Local: Thurs, May 8 2008 11:43 pm
Subject: Re: Question on library issue #581, using a sentry in flush()
On May 3, 6:13 am, Daniel Krügler <daniel.krueg...@googlemail.com>
wrote: The text in [ostream::sentry], p4 should probably be changed to read something like If ((os.flags() & ios_base::unitbuf) && !uncaught_exception()) to avoid this. Let me fix it along with the similar problem > No, I agree with your analysis. Additionally the proposed > "Behaves as an unformatted output function (as described in > because 27.6.2.6.1/p.1 describes the semantic of *formatted* working paper. We should be using section names instead of numbers, they don't change (i.e., [ostream.unformatted]). -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: comp.lang.c++.moderated
From: Daniel Krügler <daniel.krueg...@googlemail.com>
Date: Fri, 9 May 2008 21:23:39 CST
Local: Fri, May 9 2008 11:23 pm
Subject: Re: Question on library issue #581, using a sentry in flush()
On 9 Mai, 05:43, "se...@roguewave.com" <se...@roguewave.com> wrote:
> The text in [ostream::sentry], p4 should probably be changed I agree with this.. > to read something like > If ((os.flags() & ios_base::unitbuf) && !uncaught_exception()) > to avoid this. Let me fix it along with the similar problem > I think the numbers have changed between C++ 98 and the latest You are right in both points, as I just notice. > working paper. We should be using section names instead of > numbers, they don't change (i.e., [ostream.unformatted]). Let me add three related questions, which came to me while 1) N2588, [istream::sentry]/2, describes effects in terms of 2) I think that footnote 321, N2588, needs also to be adapted. 3) I have a question regarding [ios::Init]/4: The effects clause "Destroys an object of class Init. The function subtracts one from But because flush can (indirectly) throw a ios_base::failure, 1) Does the standard need to rule this exception, although it 2) Actually worse seems to me that the standard seems not to cout.flush(), cerr.flush(), .. are called and cout.flush() throws. Will cerr.flush() and [Please note that these "issues" of (3) are not new, but Greetings from Bremen, Daniel Krügler -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2012 Google |