[libcxx-commits] [PATCH] D118736: [libc++] Guard std::ranges under _LIBCPP_HAS_NO_INCOMPLETE_RANGES.
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 2 09:36:12 PST 2022
Quuxplusone added inline comments.
================
Comment at: libcxx/test/support/test_iterators.h:487
-#ifdef TEST_SUPPORTS_RANGES
+#if TEST_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
+
----------------
jloser wrote:
> Do we want to keep `TEST_STD_VER > 17` check since we have `!defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)`?
Yes, we must, because the `#if`-ed-out code uses C++20 Concepts syntax, so it cannot be compiled e.g. by MSVC in `-std:c++14` mode.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118736/new/
https://reviews.llvm.org/D118736
More information about the libcxx-commits
mailing list