mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 08:46:19 +08:00
Update DefaultVal.hpp
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
525df8b465
commit
e1ef247943
@@ -108,9 +108,10 @@ struct DefaultVal {
|
||||
/// Assigns the underlying object.
|
||||
template <class U>
|
||||
auto& operator=(DefaultVal<U>&& _field) {
|
||||
value_ = std::forward<T>(_field.value_);
|
||||
value_ = std::move(_field.value_);
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
/// Assigns the underlying object.
|
||||
void set(const Type& _value) { value_ = _value; }
|
||||
|
||||
Reference in New Issue
Block a user