What is Adhoc Testing?
What is Adhoc Testing?
July 19, 2022
linux booting process
Linux Booting Process
August 2, 2022

July 26, 2022

Operators that cannot beoverloaded in C++

Scope Resolution Operator (::)
Ternary or Conditional Operator (?:)
Member Access or Dot operator (.)
Pointer-to-member Operator (.*)
Object size Operator (sizeof)
Object type Operator(typeid)


could not be overloaded in C++ language. Attempting to overload these operators above will cause serious programming issues. For instance, overloading a dot operator may cause error because it has the same technique as the arrow operator(->). As another example, sizeof could not be given a different meaning without violating basic programming rules.

Operators that cannot beoverloaded in C++
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more