Skip to content

Commit

Permalink
#126 BREAKING! allow only functors in var_signal::modify() (any invok…
Browse files Browse the repository at this point in the history
…able were valid before)

It doesn't make much sense in allowing member pointers and other esoteric invokable here.
Getting rid of `std::invoke()` call here allows not to include `<functional>` and thus improve compilation times (see #126)
  • Loading branch information
YarikTH committed Aug 21, 2023
1 parent acf55cd commit 005f656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ureact/signal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class var_node final : public signal_node<S>
// There hasn't been any set(...) input yet, modify.
if( !m_is_input_added )
{
std::invoke( func, this->m_value );
func( this->m_value );

m_is_input_modified = true;
}
Expand All @@ -93,7 +93,7 @@ class var_node final : public signal_node<S>
// in apply_input
else
{
std::invoke( func, m_new_value );
func( m_new_value );
}
}

Expand Down

0 comments on commit 005f656

Please sign in to comment.