Compiler Error C2640
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 C2640.
identifier' : __based modifier illegal on reference
The __based modifier can be used on pointers only.
The following sample generates C2640:
// C2640.cpp
void f(int i) {
void *vp;
int _based(vp) &vr = I; // C2640
}
Show: