Overloaded Functions and Operators

Exploration 24 introduced the notion of overloaded functions. Exploration 30 continued the journey with overloaded operators. Since then, we’ve managed to get by with a commonsense understanding of overloading. I would be remiss if I did not delve deeper into this subject, so let’s finish the story of overloading, by examining the rules of overloaded functions and operators in greater depth. (Operators and functions follow the same rules, so in this Exploration, understand that functions applies equally to functions and user-defined operators.)

Type Conversion

Before jumping into the deep end ...

Get Exploring C++ 11, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.