Skip to content

Commit

Permalink
Try to work around stupid clang-cl parse bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Apr 26, 2023
1 parent 41e98a3 commit a74e523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/outcome/basic_outcome.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,14 +989,14 @@ 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);
return;
}
if(exceptioned)
if(this->exceptioned)
{
// The value + error swap threw an exception. Try to swap back _ptr
try
Expand Down
2 changes: 1 addition & 1 deletion test/tests/issue0059.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Distributed under the Boost Software License, Version 1.0.

BOOST_OUTCOME_AUTO_TEST_CASE(issues / 0059 / test, "result<NonMovable> supported?")
{
#if defined(_MSC_VER) || __cplusplus >= 201700
#if (defined(_MSC_VER) && !defined(__clang__)) || __cplusplus >= 201700
using namespace OUTCOME_V2_NAMESPACE;
struct udt
{
Expand Down

0 comments on commit a74e523

Please sign in to comment.