Chromium Code Reviews| Index: base/version.h |
| diff --git a/base/version.h b/base/version.h |
| index 85c99a355bdae61aa89144037430b44d34b2da3c..72599276c66ef5b320c8b9049f0ba9d517e10d18 100644 |
| --- a/base/version.h |
| +++ b/base/version.h |
| @@ -43,8 +43,6 @@ class BASE_EXPORT Version { |
| // than the version of this object. |
| bool IsOlderThan(const std::string& version_str) const; |
| - bool Equals(const Version& other) const; |
| - |
| // Returns -1, 0, 1 for <, ==, >. |
| int CompareTo(const Version& other) const; |
| @@ -63,6 +61,14 @@ class BASE_EXPORT Version { |
| std::vector<uint32_t> components_; |
| }; |
| +BASE_EXPORT bool operator==(const Version& v1, const Version& v2); |
| +BASE_EXPORT bool operator!=(const Version& v1, const Version& v2); |
| +BASE_EXPORT bool operator<(const Version& v1, const Version& v2); |
| +BASE_EXPORT bool operator<=(const Version& v1, const Version& v2); |
| +BASE_EXPORT bool operator>(const Version& v1, const Version& v2); |
| +BASE_EXPORT bool operator>=(const Version& v1, const Version& v2); |
| +BASE_EXPORT std::ostream& operator<<(std::ostream& stream, const Version& v); |
|
brettw
2016/01/08 19:31:16
I think you need to include iosfwd so ostream is d
Rob Percival
2016/01/09 23:54:03
Done.
|
| + |
| } // namespace base |
| // TODO(xhwang) remove this when all users are updated to explicitly use the |