[v3 PATCH] Make stateful allocator propagation more consistent for operator+(basic_string) (P1165R1)
Nina Dinka Ranns
dinka.ranns@gmail.com
Thu May 2 16:55:00 GMT 2019
Tested on Linux x86_64
Make stateful allocator propagation more consistent for
operator+(basic_string) (P1165R1)
2019-05-01 Nina Dinka Ranns <dinka.ranns@gmail.com>
Make stateful allocator propagation more consistent for
operator+(basic_string) (P1165R1)
* 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
(operator+(basic_string&&,basic_string&&) : Changed resulting
allocator to always be the one from the first parameter
* testsuite/21_strings/basic_string/allocator/char/operator_plus.cc: New
* testsuite/21_strings/basic_string/allocator/wchar_t/operator_plus.cc
: New
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1165r1.diff
Type: text/x-patch
Size: 12584 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190502/c0d74f8d/attachment.bin>
More information about the Libstdc++
mailing list