From b676d183f23cbee2c98b4097dc44f15372c1ec8b Mon Sep 17 00:00:00 2001 From: achabense <60953653+achabense@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:57:25 +0800 Subject: [PATCH] make c++14 compatible --- stl/inc/xutility | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/xutility b/stl/inc/xutility index 8478b1ef22..459ac90054 100644 --- a/stl/inc/xutility +++ b/stl/inc/xutility @@ -542,7 +542,7 @@ template struct _Ref_fn { // pass function object by value as a reference template constexpr decltype(auto) operator()(_Args&&... _Vals) noexcept( - is_nothrow_invocable_v<_Fx&, _Args&&...>) { // forward function call operator + _Select_invoke_traits<_Fx&, _Args...>::_Is_nothrow_invocable::value) { // forward function call operator if constexpr (is_member_pointer_v<_Fx>) { return _STD invoke(_Fn, _STD forward<_Args>(_Vals)...); } else {