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
5 changes: 5 additions & 0 deletions include/beman/execution/detail/product_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ struct product_type : ::beman::execution::detail::product_type_base<::std::index
}
template <typename Fun, ::std::size_t... I>
constexpr auto apply_elements(::std::index_sequence<I...>, Fun&& fun) -> decltype(auto) {
#if 0
return ::std::forward<Fun>(fun)(this->template get<I>()...);
#else
//-dk:TODO provide rvalue, lvalue, const lvalue overloads?
return ::std::forward<Fun>(fun)(std::move(this->template get<I>())...);
#endif
}
template <typename Fun>
constexpr auto apply(Fun&& fun) -> decltype(auto) {
Expand Down
1 change: 1 addition & 0 deletions include/beman/execution/execution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <beman/execution/detail/connect.hpp>
#include <beman/execution/detail/schedule.hpp>

#include <beman/execution/detail/bulk.hpp>
#include <beman/execution/detail/continues_on.hpp>
#include <beman/execution/detail/into_variant.hpp>
#include <beman/execution/detail/just.hpp>
Expand Down
4 changes: 2 additions & 2 deletions tests/beman/execution/exec-scope-simple-counting.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ auto mem() -> void {
ASSERT(true == scope.get_token().try_associate());
bool called{false};
ASSERT(called == false);
auto state(test_std::connect(scope.join(), join_receiver(called)));
auto state(test_std::connect(scope.join(), join_receiver{called}));
ASSERT(called == false);
test_std::start(state);
ASSERT(called == false);
Expand All @@ -126,7 +126,7 @@ auto token() -> void {

ASSERT(true == tok.try_associate());
bool called{false};
auto state(test_std::connect(scope.join(), join_receiver(called)));
auto state(test_std::connect(scope.join(), join_receiver{called}));
test_std::start(state);
ASSERT(false == called);
scope.close();
Expand Down
Loading