
Hi! David Abrahams schrieb:
In what code?
I got a test case which shows the error. http://svn.boost.org/trac/boost/browser/sandbox-branches/birbacher/tmp_iostr... (notice: new branch) The new test case does (test_write_close): 1. crete a stream in "open" state 2. try writing to it (streambuf does not yet throw) 3. close the stream !!! (stream buffer should be flushed and streambuf should throw now and cause badbit to be set) 4. test for errors: NONE?! Results of the test suite:
====== BEGIN OUTPUT ====== Running 15 test cases... error_test.cpp(75): fatal error in "wrap_nothrow <&test_write_close>": stream still good error_test.cpp(101): fatal error in "wrap_throw <&test_write_close>": exception std::exception is expected error_test.cpp(116): fatal error in "wrap_throw_delayed<&test_write_close>": exception ios::failure is expected error_test.cpp(90): fatal error in "wrap_nothrow <&test_seekg>": exception thrown by function(stream) error_test.cpp(75): fatal error in "wrap_throw <&test_seekg>": stream still good error_test.cpp(112): fatal error in "wrap_throw_delayed<&test_seekg>": exception thrown by function(stream) error_test.cpp(90): fatal error in "wrap_nothrow <&test_seekp>": exception thrown by function(stream) error_test.cpp(75): fatal error in "wrap_throw <&test_seekp>": stream still good error_test.cpp(112): fatal error in "wrap_throw_delayed<&test_seekp>": exception thrown by function(stream)
*** 9 failures detected in test suite "Master Test Suite"
EXIT STATUS: 201 ====== END OUTPUT ======
This is clearly not the behaviour which I'd expect. Frank