Trying to find a link for information about parsing template parameters and the >> problem
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Apr 1 20:08:00 GMT 2013
On 1 April 2013 20:43, Alec Teal wrote:
>> I don't have a link, but it seems to me that the issue is obvious.
>> The C++ lexer recognizes >> as a single token. So when you write
>> std::vector<std::vector<int>>
>> the final >> is parsed as a single token, rather than the two separate
>> tokens that the parser expects.
>
> Yes that is (was) the problem, I remember reading a document online, I cannot recall where that looked at three ways of solving it and evaluated them, I know of the problem but I want that guy's evaluation! the article spoke about GCC, I'm sure it was under the gnu domain.... gah! I wish I could recall!
Probably http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html
More information about the Gcc
mailing list