Menu

#391 Does not recognize C++11 uniform initializers

Release_xx.yy
duplicate
nobody
Bug_Report
2018-08-05
2016-08-07
No

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

Discussion

  • Louis Bertrand

    Louis Bertrand - 2016-08-07

    Sorry, forgot rev info:
    Release 16.01 rev 10702
    Windows 7 Enterprise intel i5 64-bit

     
  • ollydbg

    ollydbg - 2016-08-31
    • labels: --> CodeCompletion
     
  • ollydbg

    ollydbg - 2018-08-05
    • status: open --> duplicate
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.