Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.1.0, Qt Creator 2.2.0-beta
-
None
-
Any OS with a compiler that supports Lambda functions
-
5be4214b289196ad7531958e6685b8c342ee0915
Description
When I enter a lambda expression to Qt Creator, it will underline the whole line with green and this underline displays a tooltip that says "undefined function".
This happens both when I assign a lambda function to a function pointer, and also when I pass a lambda function as a parameter.
Example code snippet:
bool (*is_this_the_answer)(int) = [](int x)
{ return x == 42; };
int i;
std::cin >> i;
std::cout << (is_this_the_answer ? "yep!" : "nope!") << std::endl;
Note that Qt Creator also messes up the auto-indentation after it encounters a line with a lambda expression.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-903 Support for the upcoming c++0x
- Closed