diff options
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r-- | src/hir/type.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp index b09d3f40..42d1323e 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -50,6 +50,10 @@ enum class BorrowType struct LifetimeRef { ::std::string name; + + bool operator==(const LifetimeRef& x) const { + return name == x.name; + } }; struct FunctionType |