Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.