]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Zipper: pull in upstream fix for zpp_bits 59051/head
authorDaniel Gryniewicz <dang@fprintf.net>
Tue, 6 Aug 2024 12:19:20 +0000 (08:19 -0400)
committerDaniel Gryniewicz <dang@fprintf.net>
Tue, 6 Aug 2024 12:21:56 +0000 (08:21 -0400)
zpp_bits included code that required a newere compiler.  Pull in the
upstream fix from:

https://github.com/eyalz800/zpp_bits/pull/170

Fixes: https://tracker.ceph.com/issues/67321
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
src/rgw/driver/posix/zpp_bits.h

index c9e99ec59c2f425c1a13701f7cb5a36436ea71a5..229b0d6d20d99efe633697f5aed184ad7453df95 100644 (file)
@@ -3752,16 +3752,16 @@ struct bind_opaque
                 requires(decltype(in.remaining_data()) & data) {
                     (context.*Function)(data);
                 }) {
-                struct _
+                struct guard
                 {
                     decltype(in) archive;
                     decltype(in.remaining_data()) data;
-                    constexpr ~_()
+                    constexpr ~guard()
                     {
                         archive.position() += data.size();
                     }
-                } _{in, in.remaining_data()};
-                return (context.*Function)(_.data);
+                } guard{in, in.remaining_data()};
+                return (context.*Function)(guard.data);
             } else {
                 return (context.*Function)();
             }
@@ -3776,16 +3776,16 @@ struct bind_opaque
                 requires(decltype(in.remaining_data()) & data) {
                     Function(data);
                 }) {
-                struct _
+                struct guard
                 {
                     decltype(in) archive;
                     decltype(in.remaining_data()) data;
-                    constexpr ~_()
+                    constexpr ~guard()
                     {
                         archive.position() += data.size();
                     }
-                } _{in, in.remaining_data()};
-                return Function(_.data);
+                } guard{in, in.remaining_data()};
+                return Function(guard.data);
             } else {
                 return Function();
             }