Should I prefer pointers or references as data members?
My own rule of thumb : Use a reference member when you want the life of your object to be dependent on the life of other objects : it’s an explicit way to say that you don’t allow the object to be alive without a valid instance of another class – because of no assignment … Read more