]> git.ipfire.org Git - thirdparty/gcc.git/commit
Implement LWG 2758.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 11 Aug 2016 14:45:23 +0000 (17:45 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Thu, 11 Aug 2016 14:45:23 +0000 (17:45 +0300)
commit68a51b68bd6c04b937bd1283279cd1203d0e4a16
tree25fbfc32a1ac472c3780e5c66a6ef0e9c4ad66b7
parent3f1b33737d6392133cdc0f86100d1d0df977a984
Implement LWG 2758.

* include/bits/basic_string.h
(append(__sv_type, size_type, size_type)): Turn into a template,
change parameter type, constrain, add a conversion to __sv_type
from the dependent parameter type.
(assign(__sv_type, size_type, size_type)): Likewise.
(insert(size_type, __sv_type, size_type, size_type)): Likewise.
(replace(size_type, size_type, __sv_type, size_type, size_type)):
Likewise.
(compare(size_type, size_type,__sv_type, size_type, size_type)):
Likewise.
* testsuite/21_strings/basic_string/lwg2758.cc: New.

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