[libcxx-commits] [libcxx] [libc++] <algorithm>: __is_callable checks whether the callable can be called with rvalue (PR #73451)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 27 07:31:38 PST 2023
================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
----------------
ldionne wrote:
You also need to add a test that a predicate like this works for all the algorithms:
```
struct RvalueRefUncallable {
void operator()(...) && = delete;
void operator()(...) { implementation }
};
```
Since that was the original bug report IIRC.
https://github.com/llvm/llvm-project/pull/73451
More information about the libcxx-commits
mailing list