From f7f3d24fcf16f34f31d35b7e571725dff5e4c42a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 11 Jun 2016 10:00:27 +0800 Subject: HIR Typecheck - Trait object comparison/manipulation --- src/hir/type.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/hir/type.hpp') 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 -- cgit v1.2.3