[Development] RFC: more liberal 'auto' rules?
Matthew Woehlke
mwoehlke.floss at gmail.com
Tue Dec 22 15:40:01 CET 2015
On 2015-12-22 09:50, Marc Mutz wrote:
> foreach(const QString &s : someLongExpression()->fooBar().names())
>
> const auto strings = someLongExpression()->fooBar().names();
> for (const QString &s : strings)
On that note, is there any case in which Q_FOREACH is superior to a
range-based for? (Besides the obvious one where the original list is
modified from within the loop?)
--
Matthew
More information about the Development
mailing list