Fix build error due to C++17 use

This commit is contained in:
Marek Roszko 2022-10-22 16:37:45 -04:00
parent 6c2b9eb433
commit 4d729110d5
1 changed files with 3 additions and 1 deletions

View File

@ -2952,8 +2952,10 @@ bool CONNECTION_GRAPH::ercCheckLabels( const CONNECTION_SUBGRAPH* aSubgraph )
if( pinCount > 1 )
return true;
for( auto& [type, label_vec] : label_map )
for( const auto& label_pair : label_map )
{
const KICAD_T type = label_pair.first;
std::vector<SCH_TEXT*> label_vec = label_pair.second;
switch( type )
{
case SCH_GLOBAL_LABEL_T: