It would be very useful to be able to overload the . operator in C++ and return a reference to an object.
You can overload operator->
and operator*
but not operator.
Is there a technical reason for this?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…