编译器错误 C3858
“type”:不能在当前范围内重新声明
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{};
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈