ned14 / outcome

Provides very lightweight outcome<T> and result<T> (non-Boost edition)
https://ned14.github.io/outcome
Other
704 stars 62 forks source link

Errors with non-embedded status code #268

Closed gix closed 2 years ago

gix commented 2 years ago

When setting OUTCOME_BUNDLE_EMBEDDED_STATUS_CODE to OFF, find_quickcpplib_library complains that no project() has been called. So this has to be moved further down (not sure if ensure_git_subrepo can be moved too).

include/outcome/experimental/status_result.hpp also received knowledge about whether system or embedded status code is used to include system_error2.hpp. This logic is missing in coroutine_support.hpp when including status code's system_code_from_exception.hpp.

The only other thing that then fails with vcpkg is that status code headers are put into a status-code directory which is missing in its INTERFACE_SOURCES.

BurningEnlightenment commented 2 years ago

Yeah, I stumbled accross them, but I forgot to upstream the fixes, sorry. (See also microsoft/vcpkg#25855)

The only other thing that then fails with vcpkg is that status code headers are put into a status-code directory which is missing in its INTERFACE_SOURCES.

FYI that is tracked by ned14/status-code#43

ned14 commented 2 years ago

status code has been fixed, but Outcome is currently locked for pending Boost release. It should be fixed soon.

ned14 commented 2 years ago

Boost has had its 1.80 release, you are unlocked to make changes. I just updated status code to trunk, that should enable fixing this bug.