This documentation is archived and is not being maintained.

Defining Member Templates Outside a Class

The following sample works in Visual C++ .NET 2003 as specified in the standard:

// defining_member_templates_outside_a_class.cpp
// compile with: /LD
template <class T>
struct S
   template<class U> void f(U);

template<class T> template <class U> void S<T>::f(U)
{   //defined out of line

See Also

Visual C++ .NET 2003 Enhanced Compiler Conformance