From: Casey Bodley Date: Tue, 3 Feb 2026 16:44:15 +0000 (-0500) Subject: rgw/iam: typed_any/typed_none take x as forwarding reference X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d40ccd10f7bfb1919c07e7acdd7ad25a22abdd50;p=ceph-ci.git rgw/iam: typed_any/typed_none take x as forwarding reference Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h index b202052ce92..8d7f83030ad 100644 --- a/src/rgw/rgw_iam_policy.h +++ b/src/rgw/rgw_iam_policy.h @@ -528,7 +528,7 @@ struct Condition { } template - static bool typed_any(F&& f, X& x, const std::string& c, + static bool typed_any(F&& f, X&& x, const std::string& c, const std::vector& v) { auto xc = std::forward(x)(c); if (!xc) { @@ -549,7 +549,7 @@ struct Condition { } template - static bool typed_none(F&& f, X& x, const std::string& c, + static bool typed_none(F&& f, X&& x, const std::string& c, const std::vector& v) { auto xc = std::forward(x)(c); if (!xc) {