[PATCH] D38831: [libcxx] P0604, invoke_result and is_invocable

Agustín Bergé via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 05:04:26 PST 2017


K-ballo added a comment.

In https://reviews.llvm.org/D38831#952228, @lichray wrote:

>   [...]test/std/utilities/meta/meta.rel/is_nothrow_invocable.pass.cpp:118:9: error: static_assert failed due to requirement '!std::is_nothrow_invocable_r_v<int, Fn>' ""
>           static_assert(!std::is_nothrow_invocable_r_v<int, Fn>, "");
>           ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   1 error generated.
>   --
>
>
> with Clang-5.0 and trunk.  Can you reproduce?


I can reproduce.

It seems the intention was to match the tests from the previous section, so an extra `int` argument would be missing. I'll take care of it.


https://reviews.llvm.org/D38831





More information about the cfe-commits mailing list