[Interest] QList operator[]

Thiago Macieira thiago.macieira at intel.com
Fri Jan 9 19:07:48 CET 2015

On Friday 09 January 2015 17:42:02 Brad Pepers wrote:
>  So it seems like even though I'm getting a const reference using operator
> [] on the QList, it's actually making a deep copy of the data as if I was
> using the non-const version.

"I'm getting a const reference using operator[]" is the wrong part.

You're getting a non-const reference using that operator.
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list