Compiler Error C2908 (Windows CE 5.0)

Send Feedback

explicit specialization; 'template' has already been specialized from the primary template

A specialization of the primary template occurs before the explicit specialization.

The following example shows how this error might occur.

template<class T> class X {};

void f() {
X<int> x;//specialization and instantiation
//of X<int>
}

template<> class X<int> {} //explicit specialization, error

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.