summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-04-03 17:54:37 +0000
committerLouis Dionne <ldionne@apple.com>2019-04-03 17:54:37 +0000
commit6c49e1ce2610171add0132d678981d18d7702d84 (patch)
tree2b2f2ba3be900c80ce0696c5fab98bb1c7a266e5 /libcxx/test
parent4841643a1da20d5af5b18645ae169f8e3d865f9c (diff)
downloadbcm5719-llvm-6c49e1ce2610171add0132d678981d18d7702d84.tar.gz
bcm5719-llvm-6c49e1ce2610171add0132d678981d18d7702d84.zip
[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
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp5
1 files changed, 3 insertions, 2 deletions
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 @@
// <functional>
-// template <class F, class ...Args>
-// result_of_t<F&&(Args&&...)> invoke(F&&, Args&&...);
+// template<class F, class... Args>
+// invoke_result_t<F, Args...> 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:
OpenPOWER on IntegriCloud