Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Defining Member Templates Outside a Class

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

Show:
© 2015 Microsoft