The code completion feature does not recognize identifiers declared with C++11 uniform initializers such as:
int foo{2};
I have the -std=c++11 switch in my build options.
Here is the example I used. While typing the cout line with the calculation, the editor does not recognize IN_TO_CM as an identifier.
#include <iostream>
using namespace std;
int main()
{
double inches;
double IN_TO_CM {2.54};
cout << "Please enter a length in inches: ";
cin >> inches;
cout << inches * IN_TO_CM << "cm" << endl;
return 0;
}
Thanks
Sorry, forgot rev info:
Release 16.01 rev 10702
Windows 7 Enterprise intel i5 64-bit
A similar bug report: Code::Blocks / Tickets / #33 C++11 Initializer lists fool code completion