In Eclipse is the "auto" Keyword work in the same way it would in C++11? I get the following error:
#include <iostream>
using namespace std;
int main()
{
auto flag = true;
auto Number = 2500000000000;
cout << "flag = " << flag;
cout << " , sizeof(flag) = " << sizeof(flag) << endl;
cout << "Number = " << Number;
cout << " , sizeof(Number) = " << sizeof(Number) << endl;
return 0;
}
Error: "ISO C++ forbids declaration of 'flag' with no type
Error: "ISO C++ forbids declaration of 'Number' with no type