Sublime Forum

C++ class template syntax highlighting

#1

Template

template<typename T>
myClass<T>::myClass(const T& b)
{
    /* Do stuff */
}

When defining the constructor of a class template outside of the class definition, the lack of return type causes an apparent syntax highlighting bug. Is there any workaround available? The code is verified to compile in GCC.

0 Likes