Skip to content

Commit 61391f3

Browse files
replace try to STDEXEC_TRY
1 parent 0a3afb8 commit 61391f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/stdexec/__detail/__spawn_future.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ namespace STDEXEC
216216
{
217217
constexpr bool __non_throwing = (__nothrow_constructible_from<__decay_t<_T>, _T> && ...);
218218

219-
try
219+
STDEXEC_TRY
220220
{
221221
__state_->__result_.template emplace<__decayed_tuple<_CPO, _T...>>(_CPO{},
222222
static_cast<_T&&>(
223223
__t)...);
224224
}
225-
catch (...)
225+
STDEXEC_CATCH_ALL
226226
{
227227
if constexpr (!__non_throwing)
228228
{
@@ -814,11 +814,11 @@ namespace STDEXEC
814814
{
815815
constexpr bool __non_throwing = noexcept(__state.__run());
816816

817-
try
817+
STDEXEC_TRY
818818
{
819819
__state.__run();
820820
}
821-
catch (...)
821+
STDEXEC_CATCH_ALL
822822
{
823823
if constexpr (!__non_throwing)
824824
{

0 commit comments

Comments
 (0)