Here's another way in which C++ sucks:
https://godbolt.org/z/1v6qsW8vP
After 30 years of professional C++ experience, I'm still confused by these the subtle difference between function overload resolution (which performs implicit conversion) and template argument deduction (which works with exact types).
#cpp sucks #programming