diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 08:16:39 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-18 08:16:39 +0000 |
commit | 42d5e2f4650e254ffca7432968615fbd3e3e00c7 (patch) | |
tree | 7742bcd12a61d5c784fe2ceae05f31dd5e62c21c /libstdc++-v3/include/bits/basic_ios.h | |
parent | 1373952868cb7ac8a23bc9f8f292cb61ef65c652 (diff) |
This commit was manufactured by cvs2svn to create tagx86-64-merge-2002-03-18
'x86-64-merge-2002-03-18'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/x86-64-merge-2002-03-18@50948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/basic_ios.h')
-rw-r--r-- | libstdc++-v3/include/bits/basic_ios.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/basic_ios.h b/libstdc++-v3/include/bits/basic_ios.h index f91719582f1..dea2fdb3857 100644 --- a/libstdc++-v3/include/bits/basic_ios.h +++ b/libstdc++-v3/include/bits/basic_ios.h @@ -64,7 +64,8 @@ namespace std // Data members: protected: basic_ostream<_CharT, _Traits>* _M_tie; - char_type _M_fill; + mutable char_type _M_fill; + mutable bool _M_fill_init; iostate _M_exception; basic_streambuf<_CharT, _Traits>* _M_streambuf; @@ -160,7 +161,14 @@ namespace std char_type fill() const - { return _M_fill; } + { + if (!_M_fill_init) + { + _M_fill = this->widen(' '); + _M_fill_init = true; + } + return _M_fill; + } char_type fill(char_type __ch) |