Skip to content

Commit be6c5c8

Browse files
committed
Address comment about using std::forward<_Compare>() for consistency in __set_intersection() base overload.
1 parent 8307b2d commit be6c5c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__algorithm/set_intersection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ __set_intersection(
162162
std::move(__first2),
163163
std::move(__last2),
164164
std::move(__result),
165-
__comp,
165+
std::forward<_Compare>(__comp),
166166
typename std::_IterOps<_AlgPolicy>::template __iterator_category<_InIter1>(),
167167
typename std::_IterOps<_AlgPolicy>::template __iterator_category<_InIter2>());
168168
}

0 commit comments

Comments
 (0)