<table><tr><td style="">dfaure created this revision.<br />dfaure added reviewers: vkrause, dvratil.<br />Herald added projects: Frameworks, Build System.<br />Herald added subscribers: kde-buildsystem, kde-frameworks-devel.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21314">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Strict iterators can't be used on Windows, they lead to a link error<br />
when application code iterates over a QVector<QPoint> for instance, unless<br />
Qt itself was also built with strict iterators.<br />
See example at <a href="https://bugreports.qt.io/browse/AUTOSUITE-946" class="remarkup-link" target="_blank" rel="noreferrer">https://bugreports.qt.io/browse/AUTOSUITE-946</a></p>

<p>Technically this would be fine for mingw, but not for MSVC neither<br />
clang-cl (which also uses the MSVC ABI). I think it's fine to just<br />
disable it for all Windows compilers, since any iterators misuse<br />
will be detected on Unix anyway.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>None, I'm relying on Volker's findings.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R240 Extra CMake Modules</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21314">https://phabricator.kde.org/D21314</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kde-modules/KDEFrameworkCompilerSettings.cmake<br />
modules/ECMAddTests.cmake</div></div></div><br /><div><strong>To: </strong>dfaure, vkrause, dvratil<br /><strong>Cc: </strong>kde-frameworks-devel, kde-buildsystem, bencreasy, michaelh, ngraham, bruns<br /></div>