]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
fixup for to_error@Clang wip-crimson-ec-with-recovery
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 11 Feb 2026 18:25:34 +0000 (18:25 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 12 Feb 2026 15:03:17 +0000 (15:03 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/common/errorator-utils.h

index b1dd6fc3af53b80352796c0df21597a5054e6c53..6d69c573b7d78cc822b262829a61559efaacbfc0 100644 (file)
@@ -96,10 +96,10 @@ template <class... AllowedErrors>
 struct ErrorHelper<crimson::errorator<AllowedErrors...>>
 {
   // wrapped error to raw errror
-  template <class ErrorT, ErrorT ErrorV>
-  static auto to_error(const unthrowable_wrapper<ErrorT, ErrorV>&)
+  template <class ErrorT, const ErrorT& ErrorV>
+  static auto to_error(const unthrowable_wrapper<const ErrorT&, ErrorV>&)
   {
-    return std::decay_t<ErrorT>(ErrorV);
+    return ErrorT{ErrorV};
   }
 
   // raw_error to failed future carrying this error OR assert