Skip to content

Commit 685249a

Browse files
author
Sai Charan
committed
if defined stdexec
1 parent f4925c6 commit 685249a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libs/core/executors/include/hpx/executors/thread_pool_scheduler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ namespace hpx::execution::experimental {
460460
{
461461
std::decay_t<Scheduler> const& sched;
462462

463+
#if defined(HPX_HAVE_STDEXEC)
463464
// query() member function for newer stdexec
464465
auto query(stdexec::get_domain_t) const noexcept
465466
{
@@ -472,6 +473,7 @@ namespace hpx::execution::experimental {
472473
{
473474
return sched;
474475
}
476+
#endif
475477

476478
// clang-format off
477479
template <typename CPO,

0 commit comments

Comments
 (0)