Skip to content

Commit

Permalink
More fixes for clang-cl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Apr 26, 2023
1 parent a74e523 commit 4d4290c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/outcome/basic_outcome.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,22 +992,22 @@ SIGNATURE NOT RECOGNISED
if(!this->all_good)
{
// We lost one of the values
a._state._status.set_have_lost_consistency(true);
b._state._status.set_have_lost_consistency(true);
this->a._state._status.set_have_lost_consistency(true);
this->b._state._status.set_have_lost_consistency(true);
return;
}
if(this->exceptioned)
{
// The value + error swap threw an exception. Try to swap back _ptr
try
{
strong_swap(all_good, a._ptr, b._ptr);
strong_swap(this->all_good, this->a._ptr, this->b._ptr);
}
catch(...)
{
// We lost one of the values
a._state._status.set_have_lost_consistency(true);
b._state._status.set_have_lost_consistency(true);
this->a._state._status.set_have_lost_consistency(true);
this->b._state._status.set_have_lost_consistency(true);
// throw away second exception
}

Expand All @@ -1024,8 +1024,8 @@ SIGNATURE NOT RECOGNISED
t->_state._status.set_have_error(true).set_have_lost_consistency(true);
}
};
check(&a);
check(&b);
check(&this->a);
check(&this->b);
}
}
} _{*this, o};
Expand Down

0 comments on commit 4d4290c

Please sign in to comment.