peshkatari
peshkatari

Reputation: 151

NetBeans 7.2.1 Cpp Error warning initializing vector

if i initalize a vector like in the picture below, i get this errors from Netbeans but the GCC compailer doesnt show the errors and builds the program successfully. What might be the reason and a solution? Thanksenter image description here

Upvotes: 2

Views: 871

Answers (1)

Dietmar Kühl
Dietmar Kühl

Reputation: 154005

Your code uses initializer lists to initialize your std::vector. This is a feature introduced with C++ 2011 and not necessarily supported, yet, but all system processing C++. gcc is quite good in implementing new features and the recent version of gcc are fairly complete with respect to the standard. I don't know the status of C++ 2011 support for NetBeans but I would assume it is just not, yet, supported.

Upvotes: 1

Related Questions