Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 504 Bytes

compiler-error-c2528.md

File metadata and controls

22 lines (18 loc) · 504 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2528
Compiler Error C2528
11/04/2016
C2528
C2528
2ea9d583-67a8-4b16-b35f-a50eeffc03c4

Compiler Error C2528

'name' : pointer to reference is illegal

You cannot declare a pointer to a reference. Dereference the variable before declaring a pointer to it.

The following sample generates C2528:

// C2528.cpp
int i;
int &ir = i;
int & (*irptr) = ir;    // C2528