I am going through "C++ Templates: The Complete Guide (Second Edition)", page 10.
As per the book, template argument deduction doesn't take return type into account.
Template Deduction can be seen as part of overload resolution. A process that is not based on selection of return types. The sole exception is the return type of conversion operator members
Any example will be helpful in which return type is taken into account in deduction.