In C++11, this is now valid syntax:
vector<vector<float>> MyMatrix;
whereas previously, it had to be written like this (notice the space):
vector<vector<float> > MyMatrix;
My question is what is the fix that the standard uses to allow the first version?
Could it be as simply as making >
a token instead of >>
? If that's not it, what does not work with this approach?
I consider that forms like myTemplate< x>>3 >
are a non-problem, since you can disambiguate them by doing myTemplate<(x>>3)>
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…