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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for