Add non-const std::basic_string::data() for C++17
authorJonathan Wakely <jwakely@redhat.com>
Mon, 1 Aug 2016 20:12:58 +0000 (21:12 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 1 Aug 2016 20:12:58 +0000 (21:12 +0100)
commit92d58deefa851844eddec070d3f944b163d245e6
tree929354393bbeed0161a46cb2534ad4bf964f4007
parent3ce9aa832b64b5e953c2a16965f8d5d581787d16
Add non-const std::basic_string::data() for C++17

* include/bits/basic_string.h (data() const): Update comment.
(data()): Add non-const overload for C++17.
* testsuite/21_strings/basic_string/operations/data/char/2.cc: New.
* testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc: New.

From-SVN: r238963
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/operations/data/char/2.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/operations/data/wchar_t/2.cc [new file with mode: 0644]