C++17 P0067R5 std::to_chars and std::from_chars (partial)
authorJonathan Wakely <jwakely@redhat.com>
Mon, 2 Oct 2017 14:06:40 +0000 (15:06 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 2 Oct 2017 14:06:40 +0000 (15:06 +0100)
commit804b7cc438701d94db8f958c2211c59f0357b757
treee1a03dca44da9aa855ecc10d42b70286a942ccbe
parentd1453bec27eea720664c72e23d81bae22dba94ef
C++17 P0067R5 std::to_chars and std::from_chars (partial)

This adds the integral overloads of std::to_chars and std::from_chars,
including the changes made by P0682R0. Support for floating point types
is absent.

* include/Makefile.am: Add new <charconv> header.
* include/Makefile.in: Regenerate.
* include/precompiled/stdc++.h: Include <charconv>.
* include/std/charconv: New file.
(to_chars_result, to_chars, from_chars_result, from_chars): Define.
* testsuite/20_util/from_chars/1.cc: New test.
* testsuite/20_util/from_chars/1_neg.cc: New test.
* testsuite/20_util/from_chars/2.cc: New test.
* testsuite/20_util/from_chars/requirements.cc: New test.
* testsuite/20_util/to_chars/1.cc: New test.
* testsuite/20_util/to_chars/1_neg.cc: New test.
* testsuite/20_util/to_chars/2.cc: New test.
* testsuite/20_util/to_chars/requirements.cc: New test.

From-SVN: r253353
13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/include/std/charconv [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/from_chars/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/from_chars/1_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/from_chars/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/from_chars/requirements.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/1_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/requirements.cc [new file with mode: 0644]