共用方式為


編譯器警告 (層級 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 { };