הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'type': cannot be redeclared in current scope
Remarks
The type cannot be declared twice in the same scope.
Example
The following example generates 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{};