You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its this is happening because of the screwed up template pattern.
The "T> class MyDerivedClass : public MyClass<T is swallowed by the <> of the first template.
C++ thought it'd be great to allow less-than and greater-than operators inside of template angle brackets, and it turns out thats a very hard thing to parse inside of recursive regular expressions. So this is kind of an artifact of that difficulty. The whole template matching pattern needs to be rewritten
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
Default VS code theme (Dark+)
It should look like:
Line 4 has the keywords "class" and "public" in blue, the words "MyDerivedClass" and "MyClass" in green and the token "T" in green.
Related issues:
The text was updated successfully, but these errors were encountered: