How does this code compile?
struct B {
int a;
};
class A
{
B& b = b;
};
int main() {
A a;
}
My understanding was that that reference had to be initialized? It is initialized but to itself? How does this code work and what is the reference of B
initialized to?