Skip to content

Commit b188c98

Browse files
committed
try to avoid Apple-Clang damage
1 parent c178365 commit b188c98

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

include/stdexec/__detail/__env.hpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,17 +709,20 @@ namespace stdexec {
709709
using __t = __sync_attrs;
710710
using __id = __sync_attrs;
711711

712-
static constexpr auto query(__is_scheduler_affine_t) noexcept -> bool {
713-
return __is_scheduler_affine<_Sender>;
712+
[[nodiscard]]
713+
constexpr auto query(__is_scheduler_affine_t) const noexcept {
714+
return __mbool<__is_scheduler_affine<_Sender>>();
714715
}
715716

716717
template <class... _Env>
717-
static constexpr auto query(get_completion_behavior_t, const _Env&...) noexcept {
718+
[[nodiscard]]
719+
constexpr auto query(get_completion_behavior_t, const _Env&...) const noexcept {
718720
return get_completion_behavior<_Sender, _Env...>();
719721
}
720722

721723
template <__forwarding_query _Query, class... _Args>
722724
requires __queryable_with<env_of_t<_Sender>, _Query, _Args...>
725+
[[nodiscard]]
723726
constexpr auto query(_Query, _Args&&... __args) const
724727
noexcept(__nothrow_queryable_with<env_of_t<_Sender>, _Query, _Args...>)
725728
-> __query_result_t<env_of_t<_Sender>, _Query, _Args...> {

0 commit comments

Comments
 (0)