From: Radoslaw Zarzynski Date: Wed, 11 Feb 2026 18:25:34 +0000 (+0000) Subject: fixup for to_error@Clang X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0273da5521b157f865d127d50ee088ed2293d457;p=ceph-ci.git fixup for to_error@Clang Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/common/errorator-utils.h b/src/crimson/common/errorator-utils.h index b1dd6fc3af5..6d69c573b7d 100644 --- a/src/crimson/common/errorator-utils.h +++ b/src/crimson/common/errorator-utils.h @@ -96,10 +96,10 @@ template struct ErrorHelper> { // wrapped error to raw errror - template - static auto to_error(const unthrowable_wrapper&) + template + static auto to_error(const unthrowable_wrapper&) { - return std::decay_t(ErrorV); + return ErrorT{ErrorV}; } // raw_error to failed future carrying this error OR assert