79581662

Date: 2025-04-18 20:16:27
Score: 0.5
Natty:
Report link

In the call

auto m2 = max(s1,s2,s3);

T is deduced to be char const *. So max must return char const * &. The inner call to max(..., c) returns a char const *, so to return a reference to that, it must construct a reference to a temporary.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Otto von Bisquick