Skip to content

Commit bac6a8f

Browse files
Abseil Teamcopybara-github
authored andcommitted
Add UnpackStructImpl specialization for 23 struct members.
PiperOrigin-RevId: 760700889 Change-Id: I52ea2bc83d218f73504c9dfba82ce0c07e59cbb2
1 parent fa8438a commit bac6a8f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

googlemock/include/gmock/gmock-matchers.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,6 +3433,14 @@ auto UnpackStructImpl(const T& in, std::make_index_sequence<22>, char) {
34333433
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u,
34343434
v);
34353435
}
3436+
3437+
template <typename T>
3438+
auto UnpackStructImpl(const T& in, std::make_index_sequence<23>, char) {
3439+
const auto& [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v,
3440+
w] = in;
3441+
return std::tie(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u,
3442+
v, w);
3443+
}
34363444
#endif // defined(__cpp_structured_bindings)
34373445

34383446
template <size_t I, typename T>

0 commit comments

Comments
 (0)