operator overloading


hi all
i have read that we can't overload some operators like

sizeof() , scope :: , .* etc . but i don't get explenation

why we can't overload these operators .

can any one help me ?

thanks in advance. sorry bor bad english.
sizeof returns the size of a data type in bytes so you can't overload it because you can't know the size of the types you define, the scope resolution operator :: can't be overloaded because it should keep its meaning, you can't overload .* but you should be able to overload ->*

http://www.research.att.com/~bs/bs_faq2.html#overload-dot
Last edited on
Topic archived. No new replies allowed.