[libcxx-commits] [PATCH] D108575: [libcxx] Define insert_iterator::iter with ranges::iterator_t
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Aug 26 08:10:54 PDT 2021
jloser added inline comments.
================
Comment at: libcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iterator/cxx20_iter_member.pass.cpp:39
+ auto it = std::insert_iterator<NoIteratorAlias>(c, c.data_);
+ ASSERT_SAME_TYPE(decltype(std::inserter(c, c.data_)), std::insert_iterator<NoIteratorAlias>);
+ *it++ = 1 + half; // test that RHS is still implicitly converted to _Container::value_type
----------------
Should we just use `static_assert` with `std::is_same_v` since this test file only supports C++20 anyway (meaning there isn't a need to route through `ASSERT_SAME_TYPE`)?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108575/new/
https://reviews.llvm.org/D108575
More information about the libcxx-commits
mailing list