[libcxx-commits] [PATCH] D119633: [libc++] Remove recursion in basic_string::insert(const_iterator, ForwardIterator, ForwardIterator)
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Feb 12 08:41:44 PST 2022
philnik created this revision.
philnik added reviewers: Quuxplusone, ldionne.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
`__addr_in_range` cannot be known during constant evaluation, so it has to always `return true` during constant evaluation. In order to not have infinite recurion, the "not in range" code path has to be factored out of insert.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119633
Files:
libcxx/include/string
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119633.408184.patch
Type: text/x-patch
Size: 4166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220212/63377426/attachment-0001.bin>
More information about the libcxx-commits
mailing list