Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53b325bb authored by Ryan Prichard's avatar Ryan Prichard
Browse files

Workaround clang++ concepts crash

Instead of capturing everything by reference implicitly, capture just
the necessary variables. This avoids a clang++ crash in its code for
handling C++20 concepts.

Bug: 335969721
Test: m bluetooth_packetgen
Flag: EXEMPT, refactoring
Change-Id: Id94310cd5b02d38a866be7af5a37789dbc094d9f
parent b79679be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ Size ParentDef::GetOffsetForField(std::string field_name, bool from_end) const {

  // We have to use a generic lambda to conditionally change iteration direction
  // due to iterator and reverse_iterator being different types.
  auto size_lambda = [&](auto from, auto to) -> Size {
  auto size_lambda = [&field_name, padded_field, from_end](auto from, auto to) -> Size {
    auto size = Size(0);
    for (auto it = from; it != to; it++) {
      // We've reached the field, end the loop.