File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ private:
3333 inline void reset () noexcept { size_.store (0 , std::memory_order_relaxed); }
3434
3535 [[nodiscard]] auto get_set_callback (std::size_t index) noexcept -> PortCallback;
36- [[nodiscard]] auto get_clean_callback () 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_; }
3739
3840protected:
3941 [[nodiscard]] inline auto present_ports () const -> const auto& { return present_ports_; }
Original file line number Diff line number Diff line change @@ -15,10 +15,6 @@ auto reactor::BaseMultiport::get_set_callback(std::size_t index) noexcept -> rea
1515 };
1616}
1717
18- auto reactor::BaseMultiport::get_clean_callback () noexcept -> reactor::PortCallback {
19- // resets parent multiport
20- return [this ]([[maybe_unused]] const BasePort& port) { this ->reset (); };
21- }
2218
2319void reactor::BaseMultiport::set_present (std::size_t index) {
2420 auto calculated_index = size_.fetch_add (1 , std::memory_order_relaxed);
You can’t perform that action at this time.
0 commit comments