Compiler Error C2529
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 C2529.
name' : reference to reference is illegal
This error may be fixed by using pointer syntax and declaring a reference to a pointer.
The following sample generates C2529:
// C2529.cpp // compile with: /c int i; int &ri = i; int &(&rri) = ri; // C2529
Show: