Details
-
Sub-task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
windows gcc
-
8329d7db943bef3f7929d3802fc31f60e314e179
Description
For example, this:
#include <algorithm> template <typename Container> void delete_clear(Container &c) { for_each(c.begin(), c.end(), [](typename Container::value_type x){ delete x; } ); c.clear(); }
Gets a syntax error at the '[' character, while this is a valid lambda declaration. GCC 4.5/4.6 and MSVC 2010 support them already, so this should not be an error.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-6243 Support for C++11 lambdas
- Closed