共用方式為


編譯器錯誤 C2710

'construct' : '__declspec(modifier)' 只能套用至傳回指標的函式

傳回值為指標的函式,是唯一可以套用的 modifier 建構。

下列範例會產生 C2710:

// C2710.cpp
__declspec(restrict) void f();   // C2710
// try the following line instead
__declspec(restrict) int * g();