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)>.
>is already a token but the parser is and was greedy. The fix must therefore look different. – One possibility would of course be to make>>not be a token. – Konrad Rudolph Apr 3 '13 at 11:01