[Interest] Q_FOREACH creating copy , was (no subject)
Thiago Macieira
thiago.macieira at intel.com
Wed Jul 1 17:22:39 CEST 2015
On Wednesday 01 July 2015 16:58:39 Prav wrote:
> void test1() {
> QStringList container;
>
> foreach(const auto &item, container) {
> item.<<Can you get code completion here?>>
> }
>
> foreachref(const auto &item, container) {
> item.<<Can you get code completion here?>>
> }
Qt Creator's support for auto is still limited, so I wouldn't consider the
test above representative. Use the actual type instead of auto.
Anyway, you can easily do the test yourself.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list