Skip to content

Commit 843e33e

Browse files
Update src/app/data-model/Nullable.h
Co-authored-by: Damian Królik <66667989+Damian-Nordic@users.noreply.github.com>
1 parent 589cf12 commit 843e33e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/data-model/Nullable.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ struct Nullable : protected std::optional<T>
6262
return std::optional<T>::emplace(std::forward<Args>(args)...);
6363
}
6464

65-
template <typename... Args>
66-
constexpr auto ValueOr(Args &&... args) const
65+
template <typename Arg>
66+
constexpr auto ValueOr(Arg && arg) const
6767
{
68-
return std::optional<T>::value_or(std::forward<Args>(args)...);
68+
return std::optional<T>::value_or(std::forward<Arg>(arg));
6969
}
7070

7171
constexpr const T & Value() const { return **this; }

0 commit comments

Comments
 (0)