Skip to content

Commit 09ffdfc

Browse files
committed
Added explicit .Set for VarSignal.
1 parent dc935b7 commit 09ffdfc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

include/react/Signal.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class RVarSignal : public RSignal<D,S>
111111
{
112112
}
113113

114-
RVarSignal& operator<<=(const S& newValue)
114+
void Set(const S& newValue) const
115115
{
116116
if (! Domain::TransactionInputContinuation::IsNull())
117117
{
@@ -130,6 +130,11 @@ class RVarSignal : public RSignal<D,S>
130130
t.Data().Input().AddSignalInput(*varNode, newValue);
131131
t.Commit();
132132
}
133+
}
134+
135+
const RVarSignal& operator<<=(const S& newValue) const
136+
{
137+
Set(newValue);
133138
return *this;
134139
}
135140
};

0 commit comments

Comments
 (0)