From e39dd1ce5252a84b61c3ddf3164046d63cba1da6 Mon Sep 17 00:00:00 2001 From: Nathan Myers Date: Wed, 1 Oct 2003 16:58:38 +0000 Subject: [PATCH] locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s. 2003-10-01 Nathan Myers * include/bits/locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s. From-SVN: r71980 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/locale_facets.tcc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7c1550a76b1..4d0f71b420c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-10-01 Nathan Myers + + * include/bits/locale_facets.tcc (time_put::put): Avoid + expensive *__s++, in favor of *__s, ++__s. + 2003-10-01 Paolo Carlini * include/bits/locale_facets.tcc (time_put::put): Minor diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index 620e6e22d46..cbfed442c8d 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -2026,7 +2026,10 @@ namespace std __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); } else - *__s++ = __tmp; + { + *__s = __tmp; + ++__s; + } } return __s; }