We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 589cf12 commit 843e33eCopy full SHA for 843e33e
src/app/data-model/Nullable.h
@@ -62,10 +62,10 @@ struct Nullable : protected std::optional<T>
62
return std::optional<T>::emplace(std::forward<Args>(args)...);
63
}
64
65
- template <typename... Args>
66
- constexpr auto ValueOr(Args &&... args) const
+ template <typename Arg>
+ constexpr auto ValueOr(Arg && arg) const
67
{
68
- return std::optional<T>::value_or(std::forward<Args>(args)...);
+ return std::optional<T>::value_or(std::forward<Arg>(arg));
69
70
71
constexpr const T & Value() const { return **this; }
0 commit comments