Skip to content

Commit 831e29e

Browse files
committed
fix build
1 parent 77c6094 commit 831e29e

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

‎CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ if(CONDY_ENABLE_STDEXEC)
122122
target_include_directories(stdexec SYSTEM INTERFACE ${stdexec_SOURCE_DIR}/include)
123123
target_link_libraries(condy INTERFACE stdexec)
124124
target_compile_definitions(condy INTERFACE CONDY_HAS_STDEXEC)
125+
target_compile_features(condy INTERFACE cxx_std_23)
125126
endif()
126127

127128
if(CONDY_BUILD_MODULE)

‎include/condy/detail/execution.hpp‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class Scheduler {
2626
return runtime_ == other.runtime_;
2727
}
2828

29+
beman::execution::forward_progress_guarantee
30+
query(beman::execution::get_forward_progress_guarantee_t) const noexcept {
31+
return beman::execution::forward_progress_guarantee::weakly_parallel;
32+
}
33+
2934
/**
3035
* @brief Schedule a task that runs on the runtime's event loop.
3136
* @return A sender that completes on the runtime thread.
@@ -69,6 +74,12 @@ class Scheduler {
6974
using completion_signatures = beman::execution::completion_signatures<
7075
beman::execution::set_value_t()>;
7176

77+
template <typename...>
78+
static consteval auto get_completion_signatures() noexcept
79+
-> completion_signatures {
80+
return {};
81+
}
82+
7283
ScheduleSender(Runtime &runtime) : runtime_(runtime) {}
7384

7485
template <typename Receiver> auto connect(Receiver receiver) {
@@ -116,6 +127,12 @@ class [[nodiscard]] StandardSender : public SenderImpl {
116127
beman::execution::set_error_t(std::error_code),
117128
beman::execution::set_stopped_t()>;
118129

130+
template <typename...>
131+
static consteval auto get_completion_signatures() noexcept
132+
-> completion_signatures {
133+
return {};
134+
}
135+
119136
template <typename Receiver> auto connect(Receiver receiver) noexcept {
120137
using OpState = decltype(this->connect_impl(
121138
ReceiverWrapper<Receiver>{std::move(receiver)}));

‎tests/test_execution.cpp‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,18 @@ TEST_CASE("test execution - spawn with simple_counting_scope") {
210210
namespace {
211211

212212
struct StoppedSender {
213-
using sender_concept = ex::sender_t;
213+
using sender_concept = ex::sender_tag;
214214
using completion_signatures =
215215
ex::completion_signatures<ex::set_value_t(int), ex::set_stopped_t()>;
216216

217+
template <typename...>
218+
static consteval auto get_completion_signatures() noexcept
219+
-> completion_signatures {
220+
return {};
221+
}
222+
217223
template <typename Receiver> struct OperationState {
224+
using operation_state_concept = ex::operation_state_tag;
218225
Receiver receiver;
219226
void start() noexcept { ex::set_stopped(std::move(receiver)); }
220227
};

0 commit comments

Comments
 (0)