Replace simple_type with std::common_type

This commit is contained in:
Eladash 2021-04-16 06:40:54 +03:00 committed by Ivan
parent 330dea181a
commit 67e2e154fa
7 changed files with 46 additions and 44 deletions

View file

@ -49,7 +49,7 @@ namespace vm
return vm::cast(m_addr);
}
operator simple_t<T>() const
operator std::common_type_t<T>() const
{
return get_ref();
}
@ -64,7 +64,7 @@ namespace vm
return get_ref() = right.get_ref();
}
T& operator =(const simple_t<T>& right) const
T& operator =(const std::common_type_t<T>& right) const
{
return get_ref() = right;
}