[Development] Meaning of Q_PRIMITIVE_TYPE?

Olivier Goffart olivier at woboq.com
Wed Mar 28 22:02:04 CEST 2012


On Wednesday 28 March 2012 14:06:46 Thiago Macieira wrote:

> The only thing I ask is that we keep Q_PRIMITIVE_TYPE for *real* primitive
> types

Why?
Why would we need that.

If a type behaves like a POD, then it can be used as a POD.

Some types have default constructor to initialize to some default value.  But 
the constructor do not really need to be run.
And if it is not, it is left as uninitialized.

But it is fine.






More information about the Development mailing list