summaryrefslogtreecommitdiff
path: root/src/hir/crate_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/crate_ptr.hpp')
-rw-r--r--src/hir/crate_ptr.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hir/crate_ptr.hpp b/src/hir/crate_ptr.hpp
index 06e04a6e..ad6f374e 100644
--- a/src/hir/crate_ptr.hpp
+++ b/src/hir/crate_ptr.hpp
@@ -28,7 +28,10 @@ public:
}
~CratePtr();
- Crate& operator*() { return *m_ptr; }
+ Crate& operator*() { return *m_ptr; }
+ const Crate& operator*() const { return *m_ptr; }
+ Crate* operator->() { return m_ptr; }
+ const Crate* operator->() const { return m_ptr; }
};
} // namespace HIR