共用方式為


編譯器錯誤 C2640

'abstract declarator': 參考時__based修飾詞不合法

備註

__based修飾詞只能在指標上使用。

Example

下列範例會產生 C2640:

// C2640.cpp
int* ptr;

int main()
{
    int __based(ptr)& based_ref;   // C2640
    int __based(ptr)* based_ptr;   // OK
}