Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Specialisering: En explicit specialisering av en mall-komponent måste vara medlem av en explicit specialisering.
Anmärkningar
En explicit specialisering var dåligt utformad.
Example
I följande exempel genereras C3212:
// 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> {
};
*/