I was trying to create a simple console application.
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s1;
cout << "Enter your name\n";
cin >> s1;
if (s1.empty()) //at this point there is no Code Completion after s1.
{
/*some code*/
}
cin.get(); //at this point there is no CC (only _M_extract() method shown there)
return 0;
}
But if in the code try to type:
CC works well and all methods for string are shown.
Also if try to type:
There is only _M_insert() method shown.
I use Debian Linux. And I have tried to insert in search directories line '/usr/include/c++/4.4.5', but nothing changed.