Skip to content

Commit e69fb3a

Browse files
committed
avoid __nothrow which is a reserved word for msvc
1 parent 3347a29 commit e69fb3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/stdexec/__detail/__bulk.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ namespace STDEXEC {
301301
// Intercept set_value and dispatch to the bulk operation.
302302
using __shape_t = decltype(__state.__data_.__shape_);
303303
using __fun_t = decltype(__state.__data_.__fun_);
304-
constexpr bool __nothrow = __nothrow_callable<__fun_t, __shape_t, __shape_t, _Args...>;
304+
constexpr bool __is_nothrow = __nothrow_callable<__fun_t, __shape_t, __shape_t, _Args...>;
305305
STDEXEC_TRY {
306306
__state.__data_.__fun_(static_cast<__shape_t>(0), __state.__data_.__shape_, __args...);
307307
_Tag()(static_cast<_State&&>(__state).__rcvr_, static_cast<_Args&&>(__args)...);
308308
}
309309
STDEXEC_CATCH_ALL {
310-
if constexpr (!__nothrow) {
310+
if constexpr (!__is_nothrow) {
311311
STDEXEC::set_error(static_cast<_State&&>(__state).__rcvr_, std::current_exception());
312312
}
313313
}
@@ -329,7 +329,7 @@ namespace STDEXEC {
329329
if constexpr (__std::same_as<_Tag, set_value_t>) {
330330
using __shape_t = decltype(__state.__data_.__shape_);
331331
using __fun_t = decltype(__state.__data_.__fun_);
332-
constexpr bool __nothrow = __nothrow_callable<__fun_t, __shape_t, _Args...>;
332+
constexpr bool __is_nothrow = __nothrow_callable<__fun_t, __shape_t, _Args...>;
333333
const auto __shape = __state.__data_.__shape_;
334334
STDEXEC_TRY {
335335
for (__shape_t __i{}; __i != __shape; ++__i) {
@@ -338,7 +338,7 @@ namespace STDEXEC {
338338
_Tag()(static_cast<_State&&>(__state).__rcvr_, static_cast<_Args&&>(__args)...);
339339
}
340340
STDEXEC_CATCH_ALL {
341-
if constexpr (!__nothrow) {
341+
if constexpr (!__is_nothrow) {
342342
STDEXEC::set_error(static_cast<_State&&>(__state).__rcvr_, std::current_exception());
343343
}
344344
}

0 commit comments

Comments
 (0)