[PATCH] D34237: Mark the operations of __wrap_iter as constexpr
Marshall Clow via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 15 06:53:40 PDT 2017
mclow.lists created this revision.
`__wrap_iter` is an internal libc++ class used to, well, wrap other iterators (such as pointers) when we need or want an object type.
Mark the operations on `__wrap_iter` as constexpr, so that they can be used in a constexpr context if the underlying iterator can be used in such a context.
I've had this kicking around my machine for a while, and it hasn't caused any problems.
It probably needs a few tests before committing, though.
https://reviews.llvm.org/D34237
Files:
include/algorithm
include/iterator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34237.102668.patch
Type: text/x-patch
Size: 14448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170615/5d4b5788/attachment.bin>
More information about the cfe-commits
mailing list