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 612390c commit abcc3c3Copy full SHA for abcc3c3
include/reactor-cpp/multiport.hh
@@ -35,7 +35,7 @@ private:
35
[[nodiscard]] auto get_set_callback(std::size_t index) noexcept -> PortCallback;
36
const PortCallback clean_callback_{[this]([[maybe_unused]] const BasePort& port) { this->reset(); }};
37
38
- [[nodiscard]] auto get_clean_callback() const noexcept -> PortCallback { return clean_callback_; }
+ [[nodiscard]] auto get_clean_callback() const noexcept -> const PortCallback& { return clean_callback_; }
39
40
protected:
41
[[nodiscard]] inline auto present_ports() const -> const auto& { return present_ports_; }
0 commit comments