编译器错误 C3697

“qualifier”: 无法在“^”上使用此限定符

跟踪句柄 (^) 被应用到不是为它设计的限定符。

以下示例生成 C3697:

// C3697.cpp
// compile with: /clr
using namespace System;
int main() {
   String ^__restrict s;   // C3697
   String ^ s2;   // OK
}