Skip to content

Commit

Permalink
disambiguate set(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed May 30, 2024
1 parent 1539b11 commit a406532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/reactor-cpp/port.hh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public:
void set(const T& value) { set(make_immutable_value<T>(value)); }
void set(T&& value) { set(make_immutable_value<T>(std::forward<T>(value))); }
// Setting a port to nullptr is not permitted.
void set(std::nullptr_t) = delete;
template <typename V, typename = std::enable_if_t<std::is_same_v<V, std::nullptr_t>>>
void set(V) = delete;
void startup() final {}
void shutdown() final {}

Expand Down

0 comments on commit a406532

Please sign in to comment.