wifi: (fixes #893) Workaround for bug in gcc < 10.4

This commit is contained in:
Stefano Avallone
2023-05-02 19:00:12 +02:00
parent c94bae8e58
commit e7e59e8f6f

View File

@@ -409,7 +409,9 @@ WifiMgtHeader<Derived, std::tuple<Elems...>>::DeserializeImpl(Buffer::Iterator s
auto i = start;
std::apply(
[&](auto&... elems) {
// auto cannot be used until gcc 10.4 due to gcc bug 97938
// (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97938)
[&](internal::GetStoredIeT<Elems>&... elems) {
(
[&] {
if constexpr (std::is_same_v<std::remove_reference_t<decltype(elems)>, Elems>)