Operator overloading question

S

sonison.james

Why does C++ allow operator "->" to be overloaded but does not allow
operator "." to be overloaded?

Thanks and regards
SJ
 
V

Victor Bazarov

Why does C++ allow operator "->" to be overloaded but does not allow
operator "." to be overloaded?

Please start by searching the archives. This question has already been
answered. BTW, do you have a copy of "Design and Evolution of C++"?
You might want to get one.

V
 
O

osmium

Why does C++ allow operator "->" to be overloaded but does not allow
operator "." to be overloaded?

You might like to know that there is a better group for this kind of
question, comp.std.c++. It is a moderated group so anticipate a substantial
delay before you get an answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,051
Members
47,656
Latest member
rickwatson

Latest Threads

Top