[Development] constexpr construct QObject?

Thiago Macieira thiago.macieira at intel.com
Sun Sep 1 05:18:58 CEST 2013


On sábado, 31 de agosto de 2013 19:23:11, achartier at fastmail.fm wrote:
> I'm wondering if QObject could be made to be constexpr constructable.

Nope. To be constexpr constructible, an object must be of a trivial class. 
That means:

 - trivial constructor. QObject's isn't
 - trivial destructor. QObject's isn't
 - no virtuals. QObject has virtuals.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130831/ffe24802/attachment.sig>


More information about the Development mailing list