Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
370 views
in Technique[技术] by (71.8m points)

c++ - Nested templates vs shift operator

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

MSVC++2010 supports C++0x feature Right Angle Brackets


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...