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

Cache: Fix type assertion

parent 4450beec
......@@ -60,7 +60,7 @@ public:
template <typename U>
T& operator=( U&& value )
{
static_assert( std::is_same<typename std::decay<T>::type, typename std::decay<U>::type>::value, "Mismatching types" );
static_assert( std::is_convertible<typename std::decay<U>::type, typename std::decay<T>::type>::value, "Mismatching types" );
m_value = std::forward<U>( value );
m_cached = true;
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