From 72a59545e3d491bfcece3a38fb6181321471d928 Mon Sep 17 00:00:00 2001 From: Billy Robert O'Neal III Date: Thu, 21 May 2026 13:53:41 -0700 Subject: [PATCH] Fix system_code default argument in error_from_exception Use generic_code() wrapper to construct the default system_code argument, fixing a compilation issue with newer status-code implementations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- include/llfio/v2.0/status_code.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llfio/v2.0/status_code.hpp b/include/llfio/v2.0/status_code.hpp index fe098aef..98bd18d2 100644 --- a/include/llfio/v2.0/status_code.hpp +++ b/include/llfio/v2.0/status_code.hpp @@ -398,7 +398,7 @@ namespace detail } // namespace detail inline file_io_error error_from_exception(std::exception_ptr &&ep = std::current_exception(), - SYSTEM_ERROR2_NAMESPACE::system_code not_matched = errc::resource_unavailable_try_again) noexcept + SYSTEM_ERROR2_NAMESPACE::system_code not_matched = SYSTEM_ERROR2_NAMESPACE::generic_code(errc::resource_unavailable_try_again)) noexcept { #ifdef __cpp_exceptions return SYSTEM_ERROR2_NAMESPACE::system_code_from_exception(