template <typename T>
class Test {
friend Test<T> & operator * (T lhs, const Test<T> & rhs) {
Test<T> r(rhs);
// return r *= lhs;
}
}
4 IntelliSense: identifier "T" is undefined
Why is T
defined on line 3 but not line 4? I mean I guess it s not a real error just an intellisense error... It works anyway but is there something wrong? Can I fix it? Or remove the red squiggles somehow?
I am using visual studio 2010. I wonder if this happens in other versions as well?