]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/27_io/basic_ios/cons/2020.cc
std_streambuf.h: Remove cached locale facets.
authorBenjamin Kosnik <bkoz@redhat.com>
Wed, 14 Mar 2001 20:46:34 +0000 (20:46 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 14 Mar 2001 20:46:34 +0000 (20:46 +0000)
commit69302d8b5e643da233f4f8fd732282f685b19cec
treecfe69867a39c233ba7844a245ad8cbc08f5178fd
parent16a0fe505976609468dad38f6f7ddc2e68517ee7
std_streambuf.h: Remove cached locale facets.

2001-03-14  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/2020
* include/bits/std_streambuf.h: Remove cached locale facets.
(basic_streambuf::_M_buf_fctype): Remove.
(basic_streambuf::~basic_streambuf): Remove here.
(basic_streambuf::basic_streambuf): Same.
(basic_streambuf::imbue): Same.
* include/bits/fstream.tcc (filebuf::imbue): Remove _M_buf_fctype.
* include/bits/std_fstream.h (basic_filebuf::_M_fcvt): Remove.
(basic_filebuf::~basic_filebuf()): Remove here.
* include/bits/fstream.tcc (basic_filebuf::basic_filebuf): Same.
(basic_filebuf::imbue): Same.
* include/bits/localefwd.h (_Count_ones): Remove.
(locale::_S_num_categories): Just use 6, since this doesn't
actually change, ever.
* include/bits/locale_facets.tcc (has_facet): Simplify.
(use_facet): Same.
* testsuite/27_io/filebuf.cc (test06): Add tests.

From-SVN: r40472
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/include/bits/localefwd.h
libstdc++-v3/include/bits/std_fstream.h
libstdc++-v3/include/bits/std_streambuf.h
libstdc++-v3/testsuite/27_io/filebuf.cc