Sdílet prostřednictvím


Chyba kompilátoru C3858

'type': nelze znovu zadat v aktuálním oboru.

Poznámky

Typ nelze deklarovat dvakrát ve stejném oboru.

Example

Následující příklad generuje C3858:

// C3858.cpp
// compile with: /LD
template <class T>
struct Outer
{
   struct Inner;
};

template <class T>
struct Outer<T>::Inner;   // C3858
// try the following line instead
// struct Outer<T>::Inner{};