VA build 2048, VS2008
Using a reference to a template parameter as the return type for a function appears to confuse the VA parser:
class C
{
public:
template<class T>
struct D
{
int i;
};
template<class T>
T& f(const D<T>& d);
int g();
int j;
};
template<class T>
T& C::f(const D<T>& d)
{
return d.i;
}
int C::g()
{
return j;
}
The D and d in C::f are underlined, and even the j in C::g (and every other function following C::f in the file) is not recognised.
If I remove the & from the return type there is no problem.