Skip to content

Commit

Permalink
make c++14 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
achabense committed Sep 13, 2023
1 parent 2305bca commit b676d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stl/inc/xutility
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ template <class _Fx>
struct _Ref_fn { // pass function object by value as a reference
template <class... _Args>
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 {
Expand Down

0 comments on commit b676d18

Please sign in to comment.