Update DefaultVal.hpp

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-12-03 23:13:45 +01:00
committed by GitHub
co-authored by gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent 525df8b465
commit e1ef247943
+2 -1
View File
@@ -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; }