We recommend using Visual Studio 2017
Compiler Error C2825
Visual Studio 2015
The latest version of this topic can be found at Compiler Error C2825.
var : must be a class or namespace when followed by '::'
An unsuccessful attempt was made to form a qualified name.
For example, make sure that your code does not contain a function declaration where the function name begins with ::.
The following sample generates C2825:
// C2825.cpp typedef int i; int main() { int* p = new int; p->i::i(); // C2825 // try the following line instead // p->i::~i(); }
Show: