This documentation is archived and is not being maintained.

Compiler Warning (level 1) C4181

qualifier applied to reference type; ignored

A qualifier, such as const, is applied to a reference type defined by typedef.

Example

// C4181.cpp
// compile with: /W1 /LD
typedef int &RefInt;
int i;
const RefInt cri = i;   // C4181
Show: