Commit cbc2c13d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Cache: Ensure we always return a cached value

parent c353b8d3
......@@ -41,16 +41,19 @@ public:
operator const T&() const
{
assert( m_cached );
return m_value;
}
const T& get() const
{
assert( m_cached );
return m_value;
}
T& get()
{
assert( m_cached );
return m_value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment