I was looking at some code that used duration_cast. Looking a it I wondered why a static_cast was not used since static_cast's purpose in life is to convert between types.
Why did C++ need a new operator to convert between times? Why was static_cast not used?
Maybe I don't appreciate the difference C++ is making between milli-seconds, micro-seconds, nano-seconds, etc. For some reason, I thought the answer would be obvious or discussed on Stack Overflow, but I have not found it (yet).
duration_castwas not an operator (awful c++ engineering). Should I delete this question?