3 ms·
Just curious, what should you use instead?
by spdionis 11y ago
Just curious, what should you use instead?
- svalorzen 11y agoHe's talking about the fact that older compilers used to get confused if you happened to open/close multiple template tags in sequence; i.e. "<<" or ">>". These were mistaken for operators, and the code failed to compile. Nowadays there's no need to keep them separated, and compilers parse them correctly.
- deleted 11y ago[deleted]
- scott_s 11y agovector<vector<int>> Prior to C++11, the code above would fail to compile. The lexer would see the final ">>" and assume it was the out-stream operator. This was such an annoying issue that they eventually changed the grammar so that the above would compile as expected.
- jzwinck 11y agoMatrix2D<int>. Removing a space from between the brackets misses the forest.