diff options
Diffstat (limited to 'boost/outcome/basic_outcome.hpp')
-rw-r--r-- | boost/outcome/basic_outcome.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/boost/outcome/basic_outcome.hpp b/boost/outcome/basic_outcome.hpp index 4ff2932b90..0ade9e7ee9 100644 --- a/boost/outcome/basic_outcome.hpp +++ b/boost/outcome/basic_outcome.hpp @@ -1,5 +1,5 @@ /* A less simple result type -(C) 2017-2021 Niall Douglas <http://www.nedproductions.biz/> (20 commits) +(C) 2017-2023 Niall Douglas <http://www.nedproductions.biz/> (20 commits) File Created: June 2017 @@ -995,25 +995,25 @@ SIGNATURE NOT RECOGNISED bool all_good{false}; ~_() { - if(!all_good) + 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(exceptioned) + 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 } @@ -1030,8 +1030,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}; |