Try to work around AppleClang 15 compiler bug.

The error message is:
reference to local binding 'pinIt' declared in enclosing function 'ERC_TESTER::TestPinToPin'
This commit is contained in:
Alex Shvartzkop 2024-11-23 14:52:41 +03:00
parent 1997d8410e
commit 74a507249d

View File

@ -1027,8 +1027,10 @@ int ERC_TESTER::TestPinToPin()
return std::pair<size_t, iterator_t>( p.second, p.first );
} );
for( const auto& [amount, pinIt] : pins_dsc )
for( const auto& [amount, pinItBind] : pins_dsc )
{
auto& pinIt = pinItBind;
if( pin_mismatches.empty() )
break;