Template within template: why “`>>’ should be `> >’ within a nested template argument list”

Sometimes you want it to be >>. Consider

boost::array<int, 1024>>2> x;

In C++03 this successfully parses and creates an array of size 256.

Leave a Comment