[Development] Using Qt 5 with C++11/Clang 3.1?
Thiago Macieira
thiago.macieira at intel.com
Sat Jul 7 22:32:15 CEST 2012
On sábado, 7 de julho de 2012 11.17.58, Stephen Chu wrote:
> /Qt/5.0/qtbase/include/QtCore/../../src/corelib/global/qflags.h:51:7:
> note: 'QFlag' is not literal because it is not an aggregate and has no
> constexpr constructors other than copy or move constructors
> class QFlag
> ^
>
> Adding Q_DECL_CONSTEXPR to QFlag constructor fixes it:
>
> Q_DECL_CONSTEXPR inline QFlag(int i);
>
> I don't know if if is another Clang bug.
No, that looks like a real issue, Please submit the patch for the QFlag
constexpr constructor.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- 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/20120707/08aaca65/attachment.sig>
More information about the Development
mailing list