Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.7.0
-
None
-
debian testing amd64 with KDE 4.8.4
Description
Hi!
Here is a small example:
struct Foo { Foo(int a) : my_a(a) {} int operator()(int a, int b) { return my_a + a + b; } private: int my_a; }; int main() { int a = 0, b = 0; Foo foo(a); return foo(a, b); }
qtc underlines foo(a, b) in main() with 'too many arguments' hint. But if I replace argument in constructor by a constant, for example
Foo foo(1)
then qtc parses code correctly.