PR libstdc++/15002 (continued again)
authorPaolo Carlini <pcarlini@suse.de>
Sun, 25 Apr 2004 15:45:13 +0000 (15:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 25 Apr 2004 15:45:13 +0000 (15:45 +0000)
commit247791f5d179ac6fd5a437a1acd342af7f8c1640
treed5b3c279153b532f4dde8653e2d3be4b297e66e4
parentc26fa757dc8e41cdc141aac1cb54aaf4549c6bc1
PR libstdc++/15002 (continued again)

2004-04-25  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/15002 (continued again)
* include/bits/istream.tcc (getline(basic_istream<>&,
basic_string<>&, _CharT)): Use a temporary buffer, thus
avoiding reallocation for common case.

* include/bits/basic_string.tcc (_S_construct(_InIterator,
_InIterator, const _Alloc&, input_iterator_tag)): Tweak size
of temporary buffer to a power of two.

* testsuite/27_io/basic_istream/getline/char/4.cc: Add comment.

From-SVN: r81163
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.tcc
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/testsuite/27_io/basic_istream/getline/char/4.cc