The following operators that cannot be overloaded in c++.

  1.   ( member access operator) ( dot operator)
  2. sizeof ( size of operator )
  3. :: ( scope resolution operator)
  4.  .* ( pointer member access operator )
  5. typeid ( run time object type information )
  6. ?: (conditional)

Question on operator overloading ,those that can not be overloaded.

Why member access operator or dot operator (.) can not be overloaded?

Why sizeof ( size of operator ) can not be overloaded?

Why :: ( scope resolution operator) can not be overloaded?

Why .* ( pointer member access operator ) can not be overloaded?

Why typeid ( run time object type information ) can not be overloaded?

Why  ?: (conditional or ternary operator) can not be overloaded?

Ref:

https://en.wikipedia.org/wiki/C%2B%2B



Related Contents to follow