[Development] Q_COMPILER_RANGE_FOR not supported by/defined for VS2012 and VS2013 ?
Marc Mutz
marc.mutz at kdab.com
Mon Feb 29 22:47:02 CET 2016
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 <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
More information about the Development
mailing list