Skip to content

Commit

Permalink
Require observed for observe for better diagnostics.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Jul 8, 2024
1 parent df88da9 commit 7fb2cb3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ namespace Nui
ObservedValueCombinator(ObservedValues const&...) -> ObservedValueCombinator<ObservedValues...>;

template <typename... ObservedValues>
requires(Detail::IsObserved<ObservedValues>::value && ...)
ObservedValueCombinator<ObservedValues...> observe(ObservedValues const&... observedValues)
{
return ObservedValueCombinator(observedValues...);
Expand Down

0 comments on commit 7fb2cb3

Please sign in to comment.