Avoid intermittent compiler crash in GCC 7.4

Somehow the previous way this statement was written can cause an
internal compiler crash on gcc 7.4.0-1ubuntu1~18.04.1 sometimes.
This commit is contained in:
Jon Evans 2020-02-22 21:26:19 -05:00
parent 68be5fc1f4
commit 41f59ab873
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ int BACK_ANNOTATE::getPcbModulesFromString( const std::string& aPayload )
{
// Add module to the map
PCB_MODULE_DATA data( ref, footprint, value );
m_pcbModules.insert( nearestItem, decltype( PCB_MODULES_MAP::value_type() )( path,
std::make_shared<PCB_MODULE_DATA>( data ) ) );
m_pcbModules.insert( nearestItem,
std::make_pair( path, std::make_shared<PCB_MODULE_DATA>( data ) ) );
}
}
return errors;