[PATCH] PR libstdc++/84087 add default arguments to basic_string members (LWG 2268)
Jonathan Wakely
jwakely@redhat.com
Thu May 3 15:02:00 GMT 2018
On 29/01/18 13:23 +0000, Jonathan Wakely wrote:
>This implements LWG DR 2268, which is part of C++14 and so we should
>have implemented it some time ago.
>
>The change should be safe, but I think it's best to wait for Stage 1
>rather than changing it now (even though I'll also backport it to the
>branches once it's on trunk).
>
> PR libstdc++/84087
> * 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.
This is now on trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 6957 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20180503/df6a3fc1/attachment.bin>
More information about the Libstdc++
mailing list