mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 10:46:18 +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
c7e8b6e41f
commit
525df8b465
@@ -32,7 +32,7 @@ struct DefaultVal {
|
||||
DefaultVal(const DefaultVal<U>& _field) : value_(_field.get()) {}
|
||||
|
||||
template <class U>
|
||||
DefaultVal(DefaultVal<U>&& _field) : value_(_field.get()) {}
|
||||
DefaultVal(DefaultVal<U>&& _field) noexcept(noexcept(Type(std::move(_field.value())))) : value_(std::move(_field.value())) {}
|
||||
|
||||
template <class U, typename std::enable_if<std::is_convertible_v<U, Type>,
|
||||
bool>::type = true>
|
||||
|
||||
Reference in New Issue
Block a user