What is the rationale for difference between -> and . in c++ ?
- by Good Person
I know the difference between the member operator (.) and the member by pointer operator (-).
Why did the c++ designers create a different operator for this access? Why can't the compiler figure it out on its own?
If you always used a . does any case exist where it is ambiguous whether you mean a member or a member by pointer?