Compiler Error C3697

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C3697 on docs.microsoft.com. 'qualifier' : cannot use this qualifier on '^'

The tracking handle (^) was applied to a qualifier for which it was not designed.

The following sample generates C3697:

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

Show: