G
Guest
The following code gives VC++ 7.1 compiler errors C2785 and C2912
template<class U> struct Trait {typedef double result;}
template<class T> typename Trait<T>::result foo()
template<> typename Trait<int>::result foo<int>(); // Line causes errors
Shouldn't this code compile correctly? If so, is Microsoft aware of this bug
Bill Rubin
template<class U> struct Trait {typedef double result;}
template<class T> typename Trait<T>::result foo()
template<> typename Trait<int>::result foo<int>(); // Line causes errors
Shouldn't this code compile correctly? If so, is Microsoft aware of this bug
Bill Rubin