This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4685

expecting '> >' found '>>' when parsing template parameters

A template definition was not terminated correctly.

The following sample generates C4685:

// C4685.cpp
// compile with: /WX
template <class T>
struct A {

template <class T1, class T2=A<T1>>   // C4685
// try the following line instead
// template <class T1, class T2=A<T1> >
class func {