This documentation is archived and is not being maintained.

Compiler Error C3697

'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