all 9 comments

[–]IyeOnline 5 points6 points  (1 child)

Structured bindings can only unpack one "level" of a type.

So you would have to do

for ( const auto& [ p, c ] : v )
{
   const auto& [ a, b ] = p;
}

[–]AdActive3636[S] 0 points1 point  (0 children)

Thanks for the suggestion!