LibWasm: Add a copy assignment operator to Value
This commit is contained in:
parent
c5df55a8a2
commit
85794f8244
Notes:
sideshowbarker
2024-07-18 17:19:39 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/85794f82447 Pull-request: https://github.com/SerenityOS/serenity/pull/7482 Reviewed-by: https://github.com/ADKaster
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue