[libcxx-commits] [libcxx] [libc++] Fix ambiguous call in {ranges, std}::find (PR #122641)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 26 09:49:32 PST 2025


================
@@ -215,7 +217,9 @@ TEST_CONSTEXPR_CXX20 bool test() {
   Test<TriviallyComparable<wchar_t>, TriviallyComparable<wchar_t>>().operator()<TriviallyComparable<wchar_t>*>();
 #endif
 
-#if TEST_STD_VER >= 20
+  // TODO: Remove the `_LIBCPP_ENABLE_EXPERIMENTAL` check once we have the FTM guarded or views::join isn't
+  // experimental anymore
+#if TEST_STD_VER >= 20 && (!defined(_LIBCPP_VERSION) || defined(_LIBCPP_ENABLE_EXPERIMENTAL))
----------------
ldionne wrote:

This looks like a bad merge conflict resolution with a recent patch I did.

```suggestion
#if TEST_STD_VER >= 20
```

https://github.com/llvm/llvm-project/pull/122641


More information about the libcxx-commits mailing list