共用方式為


編譯器錯誤 C2755

'param' :部分特製化的非類型參數必須是簡單的標識符

非類型參數必須是簡單的標識符,編譯程式可以在編譯時期解析為單一標識碼或常數值。

下列範例會產生 C2755:

// C2755.cpp
template<int I, int J>
struct A {};

template<int I>
struct A<I,I*5> {};   // C2755
// try the following line instead
// struct A<I,5> {};