I would like to specialize a function template such that the return type changes depending on the type of the template argument.
class ReturnTypeSpecializati
You can do template specializations like so:
template T item() { return T(); } template<> float item() { return 1.0f; }