編譯器警告 (層級 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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應