News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

No IDE-Support for C++11 initialization syntax?

Started by ZaHaDum1984, January 26, 2017, 02:51:10 PM

Previous topic - Next topic

ZaHaDum1984

Hello Coders,

If I write C++ code, I use features of the C++11 standard.

Unfortunately Code::Blocks seems to be unable to handle the C++11 initialization syntax for variables.


// old syntax
int i = 0;

// C++11 syntax
int i {0};


Whenever I want to use a variable which I have initialized by using the C++11 syntax, I don't get any help/completion/suggestion from the IDE. That is very unfortunate. >:(

How can I fix this issue?

Greetings

ZaHaDum1984

oBFusCATed

Quote from: ZaHaDum1984 on January 26, 2017, 02:51:10 PM
How can I fix this issue?
Use the clang code completion plugin (requires manual compilation) or provide a patch for our parser.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]