Re:The C++14 Standard: What You Need to Know
by ubercore on Wednesday September 17, 2014 @09:57AM
(#8329936)
No, the return type can change as long as all return paths return the same value for the same function call. So you can't, in the same execution, return two different types, but two different executions can vary their return type as long as its consistent.
[ Parent
| on HN ]