Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ include(cmake/string_catalog.cmake)
add_versioned_package("gh:boostorg/mp11#boost-1.83.0")
fmt_recipe(10.2.1)
add_versioned_package("gh:intel/cpp-baremetal-concurrency#7c5b26c")
add_versioned_package("gh:intel/cpp-std-extensions#2834680")
add_versioned_package("gh:intel/cpp-std-extensions#37cc9c5")
add_versioned_package("gh:intel/cpp-baremetal-senders-and-receivers#73d95bc")

set(GEN_STR_CATALOG
Expand Down
7 changes: 4 additions & 3 deletions include/msg/detail/indexed_handler_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <stdx/compiler.hpp>
#include <stdx/ranges.hpp>

#include <functional>
#include <iterator>
#include <type_traits>
#include <utility>
Expand Down Expand Up @@ -49,9 +50,9 @@ struct indexed_handler : handler_interface<MsgBase, ExtraCallbackArgs...> {
handle(MsgBase const &msg, ExtraCallbackArgs... args) const -> bool final {
auto const callback_candidates = index(msg);

bool handled{};
for_each([&](auto i) { handled |= callback_entries[i](msg, args...); },
callback_candidates);
bool const handled = transform_reduce(
[&](auto i) -> bool { return callback_entries[i](msg, args...); },
std::logical_or{}, false, callback_candidates);

if (not handled) {
CIB_ERROR("None of the registered callbacks claimed this message.");
Expand Down
Loading