Compiler Warning (level 1) C4685
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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 {
© 2015 Microsoft