aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNina Dinka Ranns <dinka.ranns@gmail.com>2019-05-07 15:30:46 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-07 16:30:46 +0100
commitf4e678ef74b2726f9c07be2b39712a9ea4eb7119 (patch)
tree5c6609e0b18faeec8b0105b2fcd1bf1ab6efb45a /gcc
parent2313938e75f98487eb83d605e0670e2d108c3353 (diff)
downloadgcc-f4e678ef74b2726f9c07be2b39712a9ea4eb7119.zip
gcc-f4e678ef74b2726f9c07be2b39712a9ea4eb7119.tar.gz
gcc-f4e678ef74b2726f9c07be2b39712a9ea4eb7119.tar.bz2
Make allocator propagation more consistent for operator+(basic_string) (P1165R1)
2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com> Make allocator propagation more consistent for operator+(basic_string) (P1165R1) * include/bits/basic_string.h (operator+(basic_string&&, basic_string&&): Changed resulting allocator to always be the one from the first parameter. * include/bits/basic_string.tcc (operator+(const _CharT*, const basic_string&)): Changed resulting allocator to be SOCCC on the second parameter's allocator. (operator+(_CharT, const basic_string&)): Likewise. * testsuite/21_strings/basic_string/allocator/char/operator_plus.cc: New. * testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc: New. From-SVN: r270953
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions