| C++11 and indexer [RESOLVED] [message #763373] |
Fri, 09 December 2011 11:50  |
Harry Houdini Messages: 131 Registered: February 2010 |
Senior Member |
|
|
Hello,
I a m trying to enter the C++11 world, and CDT doesn't recognize
I have no problem when compiling in command line.
Is there something to do so that the parser does work with C++11 stuff ?
I use the Indigo version. Maybe the nightly build doesn't have the problem anymore ?
Thanks.
[Updated on: Wed, 21 December 2011 10:24] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
| Re: C++11 and indexer [RESOLVED] [message #871440 is a reply to message #763373] |
Sun, 13 May 2012 14:20   |
Nobody Mising name Messages: 64 Registered: July 2010 |
Member |
|
|
Doesn't work for me:
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
using namespace std;
int main()
{
shared_ptr<string> ptr(new string("str"));
auto i = ptr->find("t"); // <=== 'find' could not be resolved
cout << i << endl; // <=== Invalid overload of 'endl'
unordered_map<int, string> m; // <=== invalid template arguments
}
Using mingw gcc 4.7 and CDT 8.0.2.201202111925, added "-std=c++11" to compiler and discovery options. The macro __GXX_EXPERIMENTAL_CXX0X__ is among built-in values in Symbols.
Can anyone help?
Reproduced with CDT 8.1.0.201205092110.
[Updated on: Sun, 13 May 2012 16:48] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02432 seconds