Overloading by return type
No there isn’t. You can’t overload methods based on return type. Overload resolution takes into account the function signature. A function signature is made up of: function name cv-qualifiers parameter types And here’s the quote: 1.3.11 signature the information about a function that participates in overload resolution (13.3): its parameter-type-list (8.3.5) and, if the function … Read more