Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-09-04 11:14:57


on Tue Sep 04 2007, Frank Birbacher <bloodymir.crap-AT-gmx.net> wrote:

> Frank Birbacher schrieb:
>> I based the test on "Standard C++ IOStreams and Locales" (Langer&Kreft),
>> Section 1.3 "The Stream State". And I found the IOStreams library is
>> just using std::iostream for handling the errors. So is MSVC buggy in
>> this regard? Or am I missing something?
>>
>> Source of test case in Trac SVN Browser:
>> http://svn.boost.org/trac/boost/browser/sandbox-branches/birbacher/fix_iostreams/libs/iostreams/test/error_test.cpp?rev=39047
>
> I just tried to run the same test with STLport 5.1.3 and MSVC8Express,
> and unfortenuately I get the same errors and a couple of memory leaks.
>
> What's wrong here???
>
> Running 12 test cases...
> error_test.cpp(81): error in "wrap_nothrow <&test_seekg>": exception
> thrown by function(stream)
> error_test.cpp(66): error in "wrap_nothrow <&test_seekg>": stream still
> good
> error_test.cpp(68): error in "wrap_nothrow <&test_seekg>": stream did
> not set badbit
> error_test.cpp(69): error in "wrap_nothrow <&test_seekg>": stream did
> not fail

I would guess from looking at these messages that somebody has set the
bit on the stream that causes it to throw on error, but that the test
case is expecting errors to be reported by setting badbit.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk