-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.1.0, Qt Creator 2.2.0
-
None
-
Windows XP (QtCreator 2.2.0) and Linux (QtCreator 2.1.0)
-
89ac110ab066f3183725f574a237f9ef4c92192f
The return statement of the following function is marked as erroneous (expected token ':' got '>'). But it is correct and works:
static bool smallerWithCustomEpsilon(double a, double b, double epsilon) {
return a < b ? std::abs(b - a) > epsilon : false;
}
There is a very smilar bug (QTCREATORBUG-1511) that has already been fixed.