編譯器警告 (層級 1) C4348
'type' : 預設參數的重新定義: 參數編號
範本參數已重新定義。
下列範例會產生 C4348:
// C4348.cpp
// compile with: /LD /W1
template <class T=int> struct A; // forward declaration
template <class T=int> struct A { };
// C4348, redefinition of default parameter
// try the following line instead
// template <class T> struct A { };
意見反映
https://aka.ms/ContentUserFeedback。
即將推出:我們會在 2024 年淘汰 GitHub 問題,並以全新的意見反應系統取代並作為內容意見反應的渠道。 如需更多資訊,請參閱:提交及檢視以下的意見反映: