c++ - Can't complete `auto` variable of C++11 in Code::Blocks -


this problem easy encounter, hard describe. use code::blocks 13.12, test code snippet follows:

auto xxx = std::string("test"); xxx. 

when trailing . entered, there should context menu of auto completion popup, doesn't.

but if give right type of xxx that:

std::string xxx = std::string("test"); xxx. 

the complete menu pops normal. completion feature not support c++11 yet? or can't complete auto type?

go settings -> compiler , find c++ compiler compiler flag -std=c++11, choose flag , save.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -