[Development] It could be a little bug

Thiago Macieira thiago.macieira at intel.com
Mon Nov 4 17:15:26 CET 2013


On segunda-feira, 4 de novembro de 2013 12:31:22, Marc Mutz wrote:
> +    Q_DECL_CONSTEXPR inline QFlags operator|(QFlags f) const { return
> QFlags(i | f.i, true); } +    Q_DECL_CONSTEXPR inline QFlags operator|(Enum
> f) const { return QFlags(i | Int(f), true); } +    Q_DECL_CONSTEXPR inline
> QFlags operator^(QFlags f) const { return QFlags(i ^ f.i, true); }
> +    Q_DECL_CONSTEXPR inline QFlags operator^(Enum f) const { return
> QFlags(i ^ Int(f), true); } +    Q_DECL_CONSTEXPR inline QFlags
> operator&(int mask) const { return QFlags(i & mask, true); }
> +    Q_DECL_CONSTEXPR inline QFlags operator&(uint mask) const { return
> QFlags(i & mask, true); } +    Q_DECL_CONSTEXPR inline QFlags
> operator&(Enum f) const { return QFlags(i & Int(f), true); }
> +    Q_DECL_CONSTEXPR inline QFlags operator~() const { return QFlags(~i,
> true); }

This part looks very right.
-- 
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/20131104/fc966873/attachment.sig>


More information about the Development mailing list