Hmm, adding to ParsedData requires modifying the struct. Let me use a simpler approach — just move the variable declaration before the enclosing block:


Edit

            // Sort ways and interps in parallel. Keep way pairs sorted for direct writing.
            // sorted_way_pairs persists for use in write_entries_from_sorted later.
            data.sorted_way_cell_pairs.clear(); // will be populated below
            std::vector<CellItemPair> sorted_interp_pairs;

            // Sort ways and interps in parallel. Keep way pairs sorted for direct writing.
            std::vector<CellItemPair> sorted_way_pairs, sorted_interp_pairs;