Add std::string constructor for substring of string_view (LWG 2742)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 15 Nov 2016 14:33:20 +0000 (14:33 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 15 Nov 2016 14:33:20 +0000 (14:33 +0000)
commitbf56b0b8384cfcc5142f24eeb8f837cc974f8119
tree8cf08077d9c514a5fdd813dcdd432eccc7773295
parent8b99f005cbf2fdc6968d75a13cd2c166795418b7
Add std::string constructor for substring of string_view (LWG 2742)

* doc/xml/manual/intro.xml: Document LWG 2742 status.
* doc/html/*: Regenerate.
* include/bits/basic_string.h
(basic_string(const T&, size_type, size_type, const Allocator&)): Add
constructor for substring of basic_string_view, as per LWG 2742 but
with additional constraint to fix ambiguity.
* testsuite/21_strings/basic_string/cons/char/9.cc: New test.
* testsuite/21_strings/basic_string/cons/wchar_t/9.cc: New test.

From-SVN: r242416
libstdc++-v3/ChangeLog
libstdc++-v3/doc/html/manual/bugs.html
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/9.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/9.cc [new file with mode: 0644]