diff --git a/src/util/splay_map.h b/src/util/splay_map.h index a30c8ffa6..a1fe75955 100644 --- a/src/util/splay_map.h +++ b/src/util/splay_map.h @@ -41,7 +41,7 @@ public: public: ref(splay_map & m, K const & k):m_map(m), m_key(k) {} ref & operator=(T const & v) { m_map.insert(m_key, v); return *this; } - operator T const &() { + operator T const &() const { entry const * e = m_map.find(m_key); if (e) { return e->second;