Visual C++ Team Blog

The Visual C++ Team has started a team blog at http://blogs.msdn.com/vcblog/ This is a great step for directly communicating with C++ developers in the community. Thanks,  Ayman  

4

VC2005 Breaking Change: typename’ needed for dependent name to be treated as a type

Original Code: template<class T>const T::X& f(T::Z* p); template<class T, int N>struct Baz{}; template<class T>struct Blah : public Baz< T::Type, T::Value> {      typedef T::X  Type;   Type foo();      T::X bar();      operator T::Z();     }; Errors VC2005 issue: sample.cpp(2) : warning C4346: ‘T::X’ : dependent name is not a type        prefix with ‘typename’ to indicate a typesample.cpp(2) :…

4