Skip to content

Commit 525df8b

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/rfl/DefaultVal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct DefaultVal {
3232
DefaultVal(const DefaultVal<U>& _field) : value_(_field.get()) {}
3333

3434
template <class U>
35-
DefaultVal(DefaultVal<U>&& _field) : value_(_field.get()) {}
35+
DefaultVal(DefaultVal<U>&& _field) noexcept(noexcept(Type(std::move(_field.value())))) : value_(std::move(_field.value())) {}
3636

3737
template <class U, typename std::enable_if<std::is_convertible_v<U, Type>,
3838
bool>::type = true>

0 commit comments

Comments
 (0)