Compiler Error C2104
'&' on bit field ignored
You cannot take the address of a bit field.
The following sample generates C2104:
// C2104.cpp
struct X {
int sb : 1;
};
int main() {
X x;
&x.sb; // C2104
x.sb; // 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