std_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle...
authorLoren J. Rittle <ljrittle@acm.org>
Wed, 24 Apr 2002 00:33:28 +0000 (00:33 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Wed, 24 Apr 2002 00:33:28 +0000 (00:33 +0000)
commit9385d9cb0d46686a89108fa6b82b75e4d36b6e0f
treec2e2fb49adde7393d30c2b4c38bf72c2cf4e18ef
parentb602511f62e6f05166194ce08c1c02b21960930b
std_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle to here...

* include/std/std_fstream.h (basic_filebuf::sync): Hoist
unconditional flush on lower-layer handle to here...
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
...from here.  Optimize remaining _M_file.sync() call pattern.
* testsuite/27_io/narrow_stream_objects.cc (test04): New test.
(test05): Likewise.

From-SVN: r52699
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/std/std_fstream.h
libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc