On Monday 29 February 2016 18:33:39 Michael Möllney wrote:
> What confused me was that
> Q_COMPILER_RANGE_FOR
> is first defined for VS2015, the older ones are not setting this define.

Try

   for (int i : container)
      QCOMPARE(i, i);

on VS < 2015. You'll hit a parse error.

For more details on what's supposed to be allowed and what not:
  https://codereview.qt-project.org/142782

HTH,
Marc

-- 
Marc Mutz <[email protected]> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to