Megosztás a következőn keresztül:


C3212 fordítási hiba

"specializáció": a sablontagok explicit specializációjának egy explicit specializáció tagjának kell lennie

Megjegyzések

Egy explicit specializáció rosszul alakult ki.

Example

Az alábbi példa c3212-t hoz létre:

// C3212.cpp
// compile with: /LD
template <class T>
struct S {
   template <class T1>
   struct S1;
};

template <class T>   // C3212
template <>
struct S<T>::S1<int> {};

/*
// try the following instead
template <>
template <>
struct S<int>::S1<int> {};
*/

/*
// or, the following
template <>
struct S<int> {
   template <class T1>
   struct S1;
};

template <>
struct S<int>::S1<int> {
};
*/