diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-11 10:00:27 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-11 10:00:27 +0800 |
commit | f7f3d24fcf16f34f31d35b7e571725dff5e4c42a (patch) | |
tree | 16bb2ffaee066de084c37b8b2f67d9c03b1ece47 /src/hir/path.hpp | |
parent | 2da4fb9a180be57e396278bb0a7fa9eb1adc65f9 (diff) | |
download | mrust-f7f3d24fcf16f34f31d35b7e571725dff5e4c42a.tar.gz |
HIR Typecheck - Trait object comparison/manipulation
Diffstat (limited to 'src/hir/path.hpp')
-rw-r--r-- | src/hir/path.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hir/path.hpp b/src/hir/path.hpp index d56b11a9..50973b85 100644 --- a/src/hir/path.hpp +++ b/src/hir/path.hpp @@ -69,7 +69,7 @@ struct PathParams PathParams(PathParams&&) = default; PathParams& operator=(PathParams&&) = default; - //bool operator==(const PathParams& x) const; + bool operator==(const PathParams& x) const; //bool operator<(const PathParams& x) const; friend ::std::ostream& operator<<(::std::ostream& os, const PathParams& x); @@ -88,7 +88,8 @@ public: GenericPath clone() const; - //bool operator==(const GenericPath& x) const; + bool operator==(const GenericPath& x) const; + bool operator!=(const GenericPath& x) const { return !(*this == x); } //bool operator<(const GenericPath& x) const; friend ::std::ostream& operator<<(::std::ostream& os, const GenericPath& x); |