string::substr
forward the allocator to the newly created string?Section: 27.4.3.8.3 [string.substr] Status: NAD Submitter: Igor Zhukov Opened: 2022-08-10 Last modified: 2022-11-30
Priority: Not Prioritized
View all issues with NAD status.
Discussion:
Adrian Vogelsgesang noticed that libcxx's string::substr
forward
the allocator to the newly created string.
[2022-08-24; Reflector poll]
Set status to Tentatively NAD after reflector poll.
"If you want to provide a different allocator, you can use the substring constructor."
"This matches the constructor, whose choice of allocator has been already considered in 2402. Any changes here need a paper."
[2022-11-30 LWG telecon. Status changed: Tentatively NAD → NAD.]
Proposed resolution: