[Interest] Q_FOREACH creating copy , was (no subject)

Thiago Macieira thiago.macieira at intel.com
Tue Jun 30 22:18:03 CEST 2015


On Tuesday 30 June 2015 20:17:04 Giuseppe D'Angelo wrote:
> On Tue, Jun 30, 2015 at 7:16 PM, Thiago Macieira
> 
> <thiago.macieira at intel.com> wrote:
> > On Tuesday 30 June 2015 18:35:43 Prav wrote:
> >> If in definition of QForeachContainer class we add just ONE
> >> symbol "&" before "с" in line const T c;
> >> and get
> >> 
> >>     const T &c;
> >> 
> >> we will end up with this loop which will be same "work to write" as
> >> current
> >> foreach. So easy to do :)
> > 
> > I've already asked you to make that modification and run some Qt
> > applications to see what breaks.
> 
> Is the exercise just rhetorical? Such a change would never be accepted
> in Qt anyhow...

It would be if it could be proven that it doesn't break Qt and the 
applications.

But yes, this is a task for which I already know the result.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list