LibWasm: Add a copy assignment operator to Value

This commit is contained in:
Ali Mohammad Pur 2021-05-24 21:23:56 +04:30 committed by Ali Mohammad Pur
parent c5df55a8a2
commit 85794f8244
Notes: sideshowbarker 2024-07-18 17:19:39 +09:00

View file

@ -108,6 +108,13 @@ public:
return *this;
}
Value& operator=(const Value& value)
{
m_value = value.m_value;
m_type = value.m_type;
return *this;
}
template<typename T>
Optional<T> to()
{