We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3973446 commit c551ff9Copy full SHA for c551ff9
include/reactor-cpp/connection.hh
@@ -53,7 +53,11 @@ public:
53
return [this](const BasePort& port) {
54
// We know that port must be of type Port<T>*
55
auto& typed_port = reinterpret_cast<const Port<T>&>(port); // NOLINT
56
- this->schedule(std::move(typed_port.get()));
+ if constexpr (std::is_same<T, void>::value) {
57
+ this->schedule();
58
+ } else {
59
+ this->schedule(std::move(typed_port.get()));
60
+ }
61
};
62
}
63
0 commit comments