diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-09-18 18:43:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-07 03:06:29 +0100 |
commit | ecfbb4e441ec7870c96de664189c373f3e527e72 (patch) | |
tree | d62ab65bf4b312ce2f2c0348861a2d0d67327c57 /src/plugins/platforms/eglfs/qeglfsintegration.cpp | |
parent | 6aff0c4e48d312e827412d2c922afe983081092e (diff) |
tst_QFlags: make constExpr() check compile on clang trunk
The problem is the verifyConstExpr<>() line involving the ~ operator.
The result as an integer is a value that can no longer be represented
in an int. This is known at compile time and thus template deduction,
which only has an int to match against, fails.
To fix, use an unsigned int as the first template argument of
verifyConstExpr<>().
Clang's error message for this is really sub-optimal, cf.
http://llvm.org/bugs/show_bug.cgi?id=17834
Change-Id: I3a77dc54d2bee12b016d75724ac1bd7801f4cf2d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsintegration.cpp')
0 files changed, 0 insertions, 0 deletions