From bac6a8fd8a729eef0d1b2d1a4625f4de62c60220 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 19 May 2025 11:20:46 -0700 Subject: [PATCH] Add UnpackStructImpl specialization for 23 struct members. PiperOrigin-RevId: 760700889 Change-Id: I52ea2bc83d218f73504c9dfba82ce0c07e59cbb2 --- googlemock/include/gmock/gmock-matchers.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index aa3a5eb1..b999d6ef 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -3433,6 +3433,14 @@ auto UnpackStructImpl(const T& in, std::make_index_sequence<22>, char) { return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v); } + +template +auto UnpackStructImpl(const T& in, std::make_index_sequence<23>, char) { + const auto& [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, + w] = in; + return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, + v, w); +} #endif // defined(__cpp_structured_bindings) template