sstream.tcc (overflow): Instead of calling str()...
authorPaolo Carlini <pcarlini@unitus.it>
Fri, 2 May 2003 00:14:49 +0000 (02:14 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 2 May 2003 00:14:49 +0000 (00:14 +0000)
commit74843551df5c70987eca1d7ac1c3320cc59a75f9
tree587ab455dc5c8464dd95e9b8a0d8249079ed690b
parente70b1b7788ab76c22634d4e0e3d65ab7e55d667a
sstream.tcc (overflow): Instead of calling str()...

2003-05-01  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/sstream.tcc (overflow): Instead of calling
str(), then _M_string.reserve, thus copying the contents
of the current buffer two times, just copy the latter in
a temporary, then use the 'swap trick'.

From-SVN: r66358
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc