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
Post a Comment