diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-10 15:48:10 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-10 15:48:10 +0000 |
| commit | 421cae47dcec97c143d73a76d9a04fa730d84944 (patch) | |
| tree | 077ed2a47177325057f56a1bd722271cc32c6e5e /libstdc++-v3/include/std/ostream | |
| parent | 8790974d219484fe30a982fb6fca42fef5b73f8d (diff) | |
| download | ppe42-gcc-421cae47dcec97c143d73a76d9a04fa730d84944.tar.gz ppe42-gcc-421cae47dcec97c143d73a76d9a04fa730d84944.zip | |
2008-02-10 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/16251
* include/std/istream (basic_istream<>::basic_istream()): Call
this->init().
(basic_iostream<>::basic_iostream(basic_streambuf<>*)): Don't
do it here, per 27.6.1.5.1/1.
* include/std/ostream (basic_ostream<>::basic_ostream()): Call
this->init().
* testsuite/27_io/basic_iostream/cons/16251.C: New.
* testsuite/27_io/basic_iostream/cons/2020.cc: Minor tweaks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132214 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/ostream')
| -rw-r--r-- | libstdc++-v3/include/std/ostream | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/ostream b/libstdc++-v3/include/std/ostream index c4264753017..ffbb0e121f4 100644 --- a/libstdc++-v3/include/std/ostream +++ b/libstdc++-v3/include/std/ostream @@ -1,7 +1,7 @@ // Output streams -*- C++ -*- // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, -// 2006, 2007 +// 2006, 2007, 2008 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -366,8 +366,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) seekp(off_type, ios_base::seekdir); protected: - explicit - basic_ostream() { } + basic_ostream() + { this->init(0); } template<typename _ValueT> __ostream_type& |

