Add new std::basic_string constructor (LWG 2583)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Aug 2016 10:41:37 +0000 (11:41 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 26 Aug 2016 10:41:37 +0000 (11:41 +0100)
commit86bbf15b6b87b94c36279a72343c3873b8f20551
tree9d9fb8d2a5ed3f9cae9cb638921086c39e5690d5
parent83c7402aa5d210a822e025f353c8f9bce027a4a7
Add new std::basic_string constructor (LWG 2583)

* config/abi/pre/gnu.ver (GLIBCXX_3.4, GLIBCXX_3.4.21): Use more
precise patterns for basic_string constructors.
(GLIBCXX_3.4.23): Export new constructors.
* doc/xml/manual/intro.xml: Document LWG 2583 status.
* doc/html/*: Regenerate.
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string(const basic_string&, size_type, const Alloc&)): Add
new constructor for LWG 2583.
(basic_string(const basic_string&, size_type, size_type)): Remove
default argument.
[!_GLIBCXX_USE_CXX11_ABI]: Likewise.
* include/bits/basic_string.tcc [!_GLIBCXX_USE_CXX11_ABI]: Define it.
* testsuite/21_strings/basic_string/cons/char/8.cc: New test.
* testsuite/21_strings/basic_string/cons/wchar_t/8.cc: New test.

From-SVN: r239773
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/doc/html/manual/bugs.html
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/basic_string.tcc
libstdc++-v3/testsuite/21_strings/basic_string/cons/char/8.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/8.cc [new file with mode: 0644]