This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to find a link for information about parsing template parameters and the >> problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]