Finally, if anyone more expert at C++ than I can suggest how to fix
https://www.boost.org/development/tests/develop/developer/output/teeks99-dkr...,
I'd appreciate the help.
Just some observations that might help:
- Failing test is BOOST_CHECK(a == b); with "outcome<int> a(1);
result<int> b(1);"
- Hence the operation is "operator==(outcome, result)
- Failing stacktrace shows bottom-most: "operator==(const
basic_result &a, const basic_outcome &b)" so the
other way round
- you define the availability and noexceptness basically as "b == a"
reversing the results
Is it possible that outcome<T> and result<T> are convertible? If so,
that would explain the recursion: to check a==b you need to check b==a
so you need to check a==b, ...
If that is the case I don't think it is possible to overcome this.
However if those are convertible, why is the swapping required?
Also: Is the guard around that function "#if __cplusplus <= 202000L"
correct? If so why would you exclude C++23 and up now?
My feeling is that the operator is not required and can be removed which
avoids the recursion.
Hope that asks the right question to point you into solving this.
Regards,
Alex