Compiler Error C2289
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2289.
same type qualifier used more than once
A type declaration or definition uses a type qualifier (const, volatile, signed, or unsigned) more than once, causing an error under ANSI compatibility (/Za).
The following sample generates C2286:
// C2289.cpp // compile with: /Za /c volatile volatile int i; // C2289 volatile int j; // OK
Show: