已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
typedef 範本是非法的
定義中 typedef 不允許範本。
typedef
下列範例會產生 C2823,並示範修正它的一種方式:
// C2823.cpp template<class T> typedef struct x { T i; // C2823 can't use T, specify data type and delete template int i; // OK } x1;
此頁面對您有幫助嗎?