Leave errno unchanged by successful std::stoi etc
authorJonathan Wakely <jwakely@redhat.com>
Tue, 29 Sep 2015 15:15:39 +0000 (16:15 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 29 Sep 2015 15:15:39 +0000 (16:15 +0100)
commit6d601106549923b90769b0bbf6bad9052a9667ac
tree74c85314b244738eea02747fe675e1b840e41f3d
parent44799f87c36be1a05c9b314e00a767c43b3c3190
Leave errno unchanged by successful std::stoi etc

* include/ext/string_conversions.h (__stoa): Save and restore errno.
* testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc:
New.

From-SVN: r228249
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/string_conversions.h
libstdc++-v3/testsuite/21_strings/basic_string/numeric_conversions/char/errno.cc [new file with mode: 0644]