Skip to content

Commit

Permalink
Update src/app/data-model/Nullable.h
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Królik <[email protected]>
  • Loading branch information
andy31415 and Damian-Nordic authored Apr 23, 2024
1 parent 589cf12 commit 843e33e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/data-model/Nullable.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ struct Nullable : protected std::optional<T>
return std::optional<T>::emplace(std::forward<Args>(args)...);
}

template <typename... Args>
constexpr auto ValueOr(Args &&... args) const
template <typename Arg>
constexpr auto ValueOr(Arg && arg) const
{
return std::optional<T>::value_or(std::forward<Args>(args)...);
return std::optional<T>::value_or(std::forward<Arg>(arg));
}

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

0 comments on commit 843e33e

Please sign in to comment.