This tends to result in references to temporaries higher up the stack being returned. decltype on the iterator dereference is a more reliable method to determine the return type.
This tends to result in references to temporaries higher up the stack being returned. decltype on the iterator dereference is a more reliable method to determine the return type.