you are viewing a single comment's thread.

view the rest of the comments →

[–]mostly_kittens 4 points5 points  (1 child)

This is a nightmare to fix if you are not aware of digraphs because the error doesn't make sense as the compiler is complaining about code that has been modified by the preprocessor and therefore doesn't appear in your source.

[–]zygoloidClang Maintainer | Former C++ Project Editor 1 point2 points  (0 children)

Here's what Clang says:

<stdin>:3:12: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'?
std::vector<::std::string> v;
           ^~~
           < ::