First of all, I know about the -std=c++11 flag to enable c++11 support and where to place it. I've appended -std=c++11
to Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags
and compiling just works fine. But the indexer doesn't get along, for example if I want to use the emplace
function of std::map
(c++11), it will not find the emplace function.
#include <map>
int main() {
std::map<int, int> data;
data.emplace(5,5);
I've also checked out these related questions:
- Eclipse CDT indexer does not know C++11 containers
- Enable C++11 in Eclipse CDT (Juno/Kepler/Luna) indexer
- http://www.eclipse.org/forums/index.php/mv/msg/373462/909018/#msg_909018
Update: Now that I've played around it even doesn't recognize the std::map type, although compiling fine and eclipse finding all headers...
- Compiler Mingw64 GCC 5.2.0
- Eclipse Mars 4.5
- CDT 8.7