Bug 77448 - Vector<T>::operator== shouldn't require T to have operator!=
Summary: Vector<T>::operator== shouldn't require T to have operator!=
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 10:01 PST by Anders Carlsson
Modified: 2012-01-31 10:18 PST (History)
1 user (show)

See Also:


Attachments
Patch (1.35 KB, patch)
2012-01-31 10:03 PST, Anders Carlsson
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2012-01-31 10:01:00 PST
Vector<T>::operator== shouldn't require T to have operator!=
Comment 1 Anders Carlsson 2012-01-31 10:03:10 PST
Created attachment 124765 [details]
Patch
Comment 2 WebKit Review Bot 2012-01-31 10:05:14 PST
Attachment 124765 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/update-webkit']" exit_code: 9

Updating OpenSource
First, rewinding head to replay your work on top of it...
Applying: Fix compilation errors on build-webkit --debug --no-workers on mac.
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging LayoutTests/ChangeLog
CONFLICT (content): Merge conflict in LayoutTests/ChangeLog
Auto-merging LayoutTests/platform/qt/Skipped
CONFLICT (content): Merge conflict in LayoutTests/platform/qt/Skipped
Auto-merging Source/WebCore/ChangeLog
CONFLICT (content): Merge conflict in Source/WebCore/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 Fix compilation errors on build-webkit --debug --no-workers on mac.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 164.


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Anders Carlsson 2012-01-31 10:07:37 PST
Committed r106368: <http://trac.webkit.org/changeset/106368>
Comment 4 Darin Adler 2012-01-31 10:18:28 PST
Comment on attachment 124765 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=124765&action=review

> Source/JavaScriptCore/ChangeLog:9
> +        Change VectorComparer::compare to use !(a == b) instead of a != b since
> +        it makes more sense for Vector::operator== to use the element's operator==.

But now Vector::operator!= requires the element to have operator==

;-)