[libcxx-commits] [PATCH] D140911: [libc++] Implement P2505R5(Monadic operations for std::expected).

Yurong via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 10 09:04:15 PDT 2023


yronglin marked 2 inline comments as done.
yronglin added inline comments.


================
Comment at: libcxx/include/__expected/expected.h:1272
+    using _Up = remove_cvref_t<invoke_result_t<_Func>>;
+    static_assert(std::__is_std_expected<_Up>::value, "The result of f() must be a specialization of std::expected");
+    static_assert(
----------------
ldionne wrote:
> Here too and a few below. I think you can grep for `std::__is_expected`!
Sorry, I have missed that in previous commit, the qualifier removed now


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140911/new/

https://reviews.llvm.org/D140911



More information about the libcxx-commits mailing list