Skip to content

Commit

Permalink
[libc++] Use __invoke instead of invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdaybird committed Jul 25, 2024
1 parent baedc8e commit d3da2a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcxx/include/__algorithm/min_element.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ __min_element(_Iter __first, _Sent __last, _Comp __comp, _Proj& __proj) {
_Iter __block_start = __first, __block_end = __first;

typedef typename std::iterator_traits<_Iter>::value_type value_type;
value_type __min_val = std::invoke(__proj, *__first);
value_type __min_val = std::__invoke(__proj, *__first);

_Iter __curr = __first;
for (size_t __i = 0; __i < __n_blocked; __i += __block_size) {
Expand All @@ -62,7 +62,7 @@ __min_element(_Iter __first, _Sent __last, _Comp __comp, _Proj& __proj) {
}
__curr++;
}
if (std::invoke(__comp, __block_min, __min_val)) {
if (std::__invoke(__comp, __block_min, __min_val)) {
__min_val = __block_min;
__block_start = __start;
__block_end = __curr;
Expand Down

0 comments on commit d3da2a7

Please sign in to comment.