[Interest] QList operator
markg85 at gmail.com
Fri Jan 9 21:13:52 CET 2015
On Fri, Jan 9, 2015 at 7:07 PM, Thiago Macieira <thiago.macieira at intel.com>
> On Friday 09 January 2015 17:42:02 Brad Pepers wrote:
> > So it seems like even though I'm getting a const reference using
> >  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.
> Why is that?
QList can return a const & with the  operator . The documantation even
says it's the same as .at().
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest