]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/iam: typed_any/typed_none take x as forwarding reference
authorCasey Bodley <cbodley@redhat.com>
Tue, 3 Feb 2026 16:44:15 +0000 (11:44 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 3 Feb 2026 16:49:12 +0000 (11:49 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_iam_policy.h

index b202052ce922b38f9b9f9ad740eaa93325578cab..8d7f83030add6df09b607a72cf1eb763d3c4da68 100644 (file)
@@ -528,7 +528,7 @@ struct Condition {
   }
 
   template<typename F, typename X>
-  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<std::string>& v) {
     auto xc = std::forward<X>(x)(c);
     if (!xc) {
@@ -549,7 +549,7 @@ struct Condition {
   }
 
   template<typename F, typename X>
-  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<std::string>& v) {
     auto xc = std::forward<X>(x)(c);
     if (!xc) {