Skip to content

Commit e1ef247

Browse files
Update DefaultVal.hpp
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 525df8b commit e1ef247

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/rfl/DefaultVal.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ struct DefaultVal {
108108
/// Assigns the underlying object.
109109
template <class U>
110110
auto& operator=(DefaultVal<U>&& _field) {
111-
value_ = std::forward<T>(_field.value_);
111+
value_ = std::move(_field.value_);
112112
return *this;
113113
}
114+
}
114115

115116
/// Assigns the underlying object.
116117
void set(const Type& _value) { value_ = _value; }

0 commit comments

Comments
 (0)