Compiler Error C2293
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 C2293.
identifier': illegal to have a member variable as a __based specifier
Specifiers for __based modifier must be nonmember pointers.
The following sample generates C2293:
// C2293.cpp
// compile with: /c
class A {
static int *i;
void __based(i) *bp; // C2293
void *bp2; // OK
};
Show: