I have been reading all around about be aware >>
as ending of nested template and >>
as shift operator...
Now I have tried it in my MSVS2010 and no problem occured.
std::map<int, std::pair<int, int>> m;
This code works exactly what I want (map of pairs) but I supposed to get some error about >>
Compiler is smarter these days?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…