message: use C++11 container iteration
diff: @@ -1466,9 +1466,8 @@ void PCM::initUncoreObjects()
  for (uint32 s = 0; s < (uint32)num_sockets; ++s)
  {
  auto & handle = MSR[socketRefCore[s]];
  - for (std::vector<int32>::const_iterator iunit = IIO_units.begin(); iunit != IIO_units.end(); ++iunit)
  + for (const auto & unit: IIO_units)
  {
  - const int32 unit = *iunit;
  iioPMUs[s][unit] = UncorePMU(
  std::make_shared<MSRRegister>(handle, SKX_IIO_CBDMA_UNIT_CTL + SKX_IIO_PM_REG_STEP * unit),
  std::make_shared<MSRRegister>(handle, SKX_IIO_CBDMA_CTL0 + SKX_IIO_PM_REG_STEP * unit + 0),
  