From 6c49e1ce2610171add0132d678981d18d7702d84 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 3 Apr 2019 17:54:37 +0000 Subject: [libc++] Use std::is_nothrow_callable for std::invoke according to LWG 2807 Thanks to Zoe Carver for the patch. Differential Revision: https://reviews.llvm.org/D58097 llvm-svn: 357616 --- .../test/std/utilities/function.objects/func.invoke/invoke.pass.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcxx/test/std') diff --git a/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp b/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp index 57350f16c40..0f25db0399f 100644 --- a/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp @@ -10,8 +10,9 @@ // -// template -// result_of_t invoke(F&&, Args&&...); +// template +// invoke_result_t invoke(F&& f, Args&&... args) // C++17 +// noexcept(is_nothrow_invocable_v<_Fn, _Args...>); /// C++14 [func.def] 20.9.0 /// (1) The following definitions apply to this Clause: -- cgit v1.2.3