編譯器錯誤 C3858
'type': 無法在目前範圍內重新宣告
類型無法在相同的範圍內宣告兩次。
下列範例會產生 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{};