Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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 {
};
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.