locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s.
authorNathan Myers <ncm@cantrip.org>
Wed, 1 Oct 2003 16:58:38 +0000 (16:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 1 Oct 2003 16:58:38 +0000 (16:58 +0000)
2003-10-01  Nathan Myers  <ncm@cantrip.org>

* include/bits/locale_facets.tcc (time_put::put): Avoid
expensive *__s++, in favor of *__s, ++__s.

From-SVN: r71980

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 7c1550a76b10b953a6ca3c9f4e87dcfe883d425f..4d0f71b420c44eccc61df72f90531033ec8980b8 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-01  Nathan Myers  <ncm@cantrip.org>
+
+       * include/bits/locale_facets.tcc (time_put::put): Avoid
+       expensive *__s++, in favor of *__s, ++__s.
+
 2003-10-01  Paolo Carlini  <pcarlini@unitus.it>
 
        * include/bits/locale_facets.tcc (time_put::put): Minor
index 620e6e22d46b34fab69e1a51c87f74b0de0fae3c..cbfed442c8d1ec5da92885f629303ba6c1ba7a44 100644 (file)
@@ -2026,7 +2026,10 @@ namespace std
              __s = this->do_put(__s, __io, __fill, __tm, __format, __mod);
            }
          else
-           *__s++ = __tmp;
+           {
+             *__s = __tmp;
+             ++__s;
+           }
        }
       return __s;
     }