Skip to content

Commit 47b7f39

Browse files
authored
Merge pull request #1792 from timrae/fix/macro_conflict
Build: Use _Boolean instead of _Bool (again)
2 parents 3fbf706 + e32f6e3 commit 47b7f39

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/exec/repeat_until.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ namespace exec {
4444
trampoline_scheduler __sched_;
4545
};
4646

47-
template <class _Bool, bool _Expected>
48-
concept __bool_constant = __decay_t<_Bool>::value == _Expected;
47+
template <class _Boolean, bool _Expected>
48+
concept __bool_constant = __decay_t<_Boolean>::value == _Expected;
4949

5050
template <class _ReceiverId>
5151
struct __receiver {
@@ -55,22 +55,22 @@ namespace exec {
5555
using __id = __receiver;
5656
using receiver_concept = STDEXEC::receiver_t;
5757

58-
template <class... _Bools>
59-
constexpr void set_value(_Bools &&...__bools) noexcept {
60-
if constexpr ((__bool_constant<_Bools, true> && ...)) {
58+
template <class... _Booleans>
59+
constexpr void set_value(_Booleans &&...__bools) noexcept {
60+
if constexpr ((__bool_constant<_Booleans, true> && ...)) {
6161
// Always done:
6262
__state_->__cleanup();
6363
STDEXEC::set_value(std::move(__state_->__rcvr_));
64-
} else if constexpr ((__bool_constant<_Bools, false> && ...)) {
64+
} else if constexpr ((__bool_constant<_Booleans, false> && ...)) {
6565
// Never done:
6666
__state_->__repeat();
6767
} else {
6868
// Mixed results:
6969
constexpr bool __is_nothrow = noexcept(
70-
(static_cast<bool>(static_cast<_Bools &&>(__bools)) && ...));
70+
(static_cast<bool>(static_cast<_Booleans &&>(__bools)) && ...));
7171
STDEXEC_TRY {
7272
// If the child sender completed with true, we're done
73-
const bool __done = (static_cast<bool>(static_cast<_Bools &&>(__bools)) && ...);
73+
const bool __done = (static_cast<bool>(static_cast<_Booleans &&>(__bools)) && ...);
7474
if (__done) {
7575
__state_->__cleanup();
7676
STDEXEC::set_value(std::move(__state_->__rcvr_));

0 commit comments

Comments
 (0)