[libcxx-commits] [libcxx] [libc++][ranges][test-suite][NFC] Consistency improvements after P3050 (PR #213062)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 30 18:54:41 PDT 2026
================
@@ -12,12 +12,12 @@
// The constructor is now `private` (exposition-only) per P3059R2.
+#include <concepts>
#include <ranges>
#include <tuple>
-#include <type_traits>
using BaseIter = std::tuple<int>*;
using ElementsIter = std::ranges::iterator_t<std::ranges::elements_view<std::ranges::subrange<BaseIter, BaseIter>, 0>>;
-static_assert(!std::is_constructible_v<ElementsIter, BaseIter>);
-static_assert(!std::is_convertible_v<BaseIter, ElementsIter>);
+static_assert(!std::constructible_from<ElementsIter, BaseIter>);
+static_assert(!std::convertible_to<BaseIter, ElementsIter>);
----------------
Zingam wrote:
OK Thank you. I'll update the tests to use the type traits consistently.
https://github.com/llvm/llvm-project/pull/213062
More information about the libcxx-commits
mailing list