PR libstdc++/84087 add default arguments to basic_string members (LWG 2268)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 3 May 2018 15:01:20 +0000 (16:01 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 3 May 2018 15:01:20 +0000 (16:01 +0100)
commit852ee53c2775b43fef0bdba08c160ea95c1c7245
tree3c558d45cbbbce1ee2ab96830fe036b2d53799fd
parentd49b3426947aa1064d8d224619da66daaf4bfb8a
PR libstdc++/84087 add default arguments to basic_string members (LWG 2268)

This change was a DR against C++11 and so should have been implemented
years ago.

PR libstdc++/84087 LWG DR 2268 basic_string default arguments
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI=1]
(append(const basic_string&, size_type, size_type)
(assign(const basic_string&, size_type, size_type)
(insert(size_type, const basic_string&, size_type, size_type)
(replace(size_type,size_type,const basic_string&,size_type,size_type)
(compare(size_type,size_type,constbasic_string&,size_type,size_type)):
Add default arguments (LWG 2268).
[_GLIBCXX_USE_CXX11_ABI=0]
(append(const basic_string&, size_type, size_type)
(assign(const basic_string&, size_type, size_type)
(insert(size_type, const basic_string&, size_type, size_type)
(replace(size_type,size_type,const basic_string&,size_type,size_type)
(compare(size_type,size_type,constbasic_string&,size_type,size_type)):
Likewise.
* testsuite/21_strings/basic_string/dr2268.cc: New test.

From-SVN: r259895
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/testsuite/21_strings/basic_string/dr2268.cc [new file with mode: 0644]