2 years passed through this question and answers, but nothing has changed in Qt Creator (at least for Linux): even the latest version (now 3.5) cannot parse C ++ 11 headers.
The problem is that by default __cplusplus in the internal Qt Creator parser is defined to a value less than 201103L, there are a lot of checks of this macro in the STL headers, for example:
#if __cplusplus < 201103L #include <bits/c++0x_warning.h> // disable all tasty functionality #endif
At first I tried to add to *. config the following line:
#define __cplusplus 201103L
Nothing happened.
After some research, I finally found the right solution: just write in *. config :
#define __cplusplus 201103
Magically everything becomes alive!
source share