[libcxx-commits] [PATCH] D106372: [libc++] Avoid triggering warnings for implicit conversion
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 23 13:45:14 PDT 2021
Quuxplusone added subscribers: jwakely, tcanens.
Quuxplusone added a comment.
@ldionne: Serendipitously, @jwakely just alerted me to LWG's Tentatively Ready on @tcanens' paper P2393R0 "Cleaning up integer-class types" <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2393r0.html>, which specifically mandates (the effect of) an //explicit cast// from `decltype(n)` to `iter_difference_t<I>` every time the library clauses talk about `i + n` or `i - n`. See the added section marked '?', in green <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2393r0.html#pnum_41>.
The state-of-trunk after D106372 <https://reviews.llvm.org/D106372> seems pretty darn close to what's about to be mandated — and in particular, D106372 <https://reviews.llvm.org/D106372> didn't make things worse. :) Good!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106372/new/
https://reviews.llvm.org/D106372
More information about the libcxx-commits
mailing list