Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 684 Bytes

compiler-error-c2825.md

File metadata and controls

30 lines (24 loc) · 684 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2825
Compiler Error C2825
11/04/2016
C2825
C2825
c832f1c1-5184-4fc2-9356-12b21daa7af3

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 ::.

Example

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();
}