[Development] Meaning of Q_PRIMITIVE_TYPE?
Olivier Goffart
olivier at woboq.com
Fri Mar 30 18:41:46 CEST 2012
On Friday 30 March 2012 12:23:59 Thiago Macieira wrote:
> Use of QVarLengthArray should *only* be done with primitive types, the fixes
> applied to it during Qt 4.x lifetime notwithstanding. So the user must know
> that before he uses that class. If he's not sure, use QVector.
That is wrong. QVarLenghtArray can be use with every types.
> Also, QVarLengthArray should zero-initialise, but it doesn't.
It is documented not to.
But yes, it probably should. (we can add a Qt::Uninitialized overload if we
need it)
More information about the Development
mailing list