M
Master of C++
Hi,
In Effective C++, #30, Myers says:
"Avoid member functions that return pointers or references to members
less accessible than themselves"
But, operator[] does exactly the opposite. Is overloading operator[]
considered "evil" in C++ circles ? I write a lot of numerical
programming code, and such operators make life easier for me.
Thanks,
Vijay.
In Effective C++, #30, Myers says:
"Avoid member functions that return pointers or references to members
less accessible than themselves"
But, operator[] does exactly the opposite. Is overloading operator[]
considered "evil" in C++ circles ? I write a lot of numerical
programming code, and such operators make life easier for me.
Thanks,
Vijay.