diff options
| author | Zhihao Yuan <zy@miator.net> | 2017-12-12 18:42:04 +0000 |
|---|---|---|
| committer | Zhihao Yuan <zy@miator.net> | 2017-12-12 18:42:04 +0000 |
| commit | bcde6e715ef0fd2ae3e092b4104cc9c79bd73cf6 (patch) | |
| tree | e80680d1b6be5c2976c2770b63c31fd0ca0d6441 /libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp | |
| parent | 81a4a02cbc02143576275dbc6807b9b99c18961e (diff) | |
| download | bcm5719-llvm-bcde6e715ef0fd2ae3e092b4104cc9c79bd73cf6.tar.gz bcm5719-llvm-bcde6e715ef0fd2ae3e092b4104cc9c79bd73cf6.zip | |
[libcxx] P0604, invoke_result and is_invocable
Summary:
Introduce a new form of `result_of` without function type encoding.
Rename and split `is_callable/is_nothrow_callable` into `is_invocable/is_nothrow_invocable/is_invocable_r/is_nothrow_invocable_r` (and associated types accordingly)
Change function type encoding of previous `is_callable/is_nothrow_callable` traits to conventional template type parameter lists.
Reviewers: EricWF, mclow.lists, bebuch
Reviewed By: EricWF, bebuch
Subscribers: lichray, bebuch, cfe-commits
Differential Revision: https://reviews.llvm.org/D38831
llvm-svn: 320509
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp')
| -rw-r--r-- | libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp index 72011f4773b..7b427b9ac1e 100644 --- a/libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/unord.hash/non_enum.pass.cpp @@ -32,7 +32,7 @@ int main() static_assert(!std::is_copy_assignable<H>::value, ""); static_assert(!std::is_move_assignable<H>::value, ""); #if TEST_STD_VER > 14 - static_assert(!std::is_callable<H(X&)>::value, ""); - static_assert(!std::is_callable<H(X const&)>::value, ""); + static_assert(!std::is_invocable<H, X&>::value, ""); + static_assert(!std::is_invocable<H, X const&>::value, ""); #endif } |

