mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-06-02 05:38:18 +08:00
Add UnpackStructImpl specialization for 23 struct members.
PiperOrigin-RevId: 760700889 Change-Id: I52ea2bc83d218f73504c9dfba82ce0c07e59cbb2
This commit is contained in:
parent
fa8438ae6b
commit
bac6a8fd8a
@ -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 <typename T>
|
||||
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 <size_t I, typename T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user