dimanche 29 mars 2015

Double closing angle brackets (>>) generate syntax error in SPECIFIC case [duplicate]


This question already has an answer here:




Eclipse (Luna, 4.4.2) tells me that I have a syntax error on the following line:



static_cast<Vec<int, DIM>>(a.mul(b));


I remembered that double closing angle brackets >> can lead to problems with some compilers, so I put a blank in between: > >. The syntax error disappears.


BUT I have many >> in my program where no syntax error is detected, such as:



vector<unique_ptr<Node<Element<DIM>>>> tiles;


or



Node<Element<DIM>> * e= a.get();


Why do I get an error the above mentioned specific case?


Aucun commentaire:

Enregistrer un commentaire