Skip to content

Commit c551ff9

Browse files
committed
fix void connections
1 parent 3973446 commit c551ff9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/reactor-cpp/connection.hh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public:
5353
return [this](const BasePort& port) {
5454
// We know that port must be of type Port<T>*
5555
auto& typed_port = reinterpret_cast<const Port<T>&>(port); // NOLINT
56-
this->schedule(std::move(typed_port.get()));
56+
if constexpr (std::is_same<T, void>::value) {
57+
this->schedule();
58+
} else {
59+
this->schedule(std::move(typed_port.get()));
60+
}
5761
};
5862
}
5963

0 commit comments

Comments
 (0)