Skip to content

Commit c689b16

Browse files
committed
Fix std::find() to use operator==, as gcc stdlibc++ does.
1 parent 40d00b4 commit c689b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace std{
4646
template<class InputIterator, class T> _UCXXEXPORT
4747
InputIterator find(InputIterator first, InputIterator last, const T& value)
4848
{
49-
while(first !=last && *first != value){
49+
while(first !=last && ! ( *first == value ) ){
5050
++first;
5151
}
5252
return first;

0 commit comments

Comments
 (0)