Compiler Error C2634
'&class::member' : pointer to reference member is illegal
A pointer to a reference member is declared.
The following sample generates C2634:
// C2634.cpp
int mem;
struct S {
S() : rf(mem) { }
int &rf;
};
int (S::*pdm) = &S::rf; // C2634
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