0
0
mirror of https://github.com/google/googletest.git synced 2025-04-02 18:00:25 +00:00

Add UnpackStructImpl for structs with 22 fields.

PiperOrigin-RevId: 739148442
Change-Id: Iae29066daddeea8384f3eb06ff075299156e9579
This commit is contained in:
Abseil Team 2025-03-21 05:44:17 -07:00 committed by Copybara-Service
parent c2ceb2b09b
commit 2ae29b52fd

View File

@ -3407,6 +3407,14 @@ auto UnpackStructImpl(const T& in, std::make_index_sequence<21>, 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);
}
template <typename T>
auto UnpackStructImpl(const T& in, std::make_index_sequence<22>, 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] = 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);
}
#endif // defined(__cpp_structured_bindings)
template <size_t I, typename T>