Play and learn 300 000+ tabs online

Tuesday, June 22, 2010

What operators can/cannot be overloaded?

Most can be overloaded. The only C++ operators that can't be are . and ?: (and sizeof, which is technically an operator). C++ adds a few of its own operators, most of which can be overloaded except :: and .*.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.