auto loops with GCC <9

It seems that

for (auto& p: …)

is not an admissible loop for GCC if you use the GCC 8 compiler version (or older). The only fix- if you have to support this generation of compilers – is to replace the auto loop with a traditional one with an integer counter.

Leave a Reply

Your email address will not be published. Required fields are marked *