Permalink
Browse files

Fix std::find() to use operator==, as gcc stdlibc++ does.

  • Loading branch information...
1 parent 40d00b4 commit c689b16cceb3ef22d0606fc5566eb178fa1a40d7 @maniacbug committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 algorithm
View
@@ -46,7 +46,7 @@ namespace std{
template<class InputIterator, class T> _UCXXEXPORT
InputIterator find(InputIterator first, InputIterator last, const T& value)
{
- while(first !=last && *first != value){
+ while(first !=last && ! ( *first == value ) ){
++first;
}
return first;

0 comments on commit c689b16

Please sign in to comment.