'construct' : '__declspec(modifier)' 只能套用至傳回指標的函式
備註
傳回值為指標的函式,是唯一可以套用的 modifier 建構。
範例
下列範例會產生 C2710:
// C2710.cpp
__declspec(restrict) void f(); // C2710
// try the following line instead
__declspec(restrict) int * g();
'construct' : '__declspec(modifier)' 只能套用至傳回指標的函式
傳回值為指標的函式,是唯一可以套用的 modifier 建構。
下列範例會產生 C2710:
// C2710.cpp
__declspec(restrict) void f(); // C2710
// try the following line instead
__declspec(restrict) int * g();