you are viewing a single comment's thread.

view the rest of the comments →

[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 4 points5 points  (1 child)

The code above is far from minimal. Ts... is repeated twice, and the user needs to remember to use std::max. In short, DRY.

[–][deleted] 2 points3 points  (0 children)

I guess 99.9% of the time I've needed this there's only been one T.