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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -