operator/(duration, duration) has wrong return type
Author: mtnpkeCreated Jan 28, 2025Updated Jan 28, 2025
operator/ with two durations as arguments is implemented to return a duration:
This is wrong; see https://en.cppreference.com/w/cpp/chrono/duration/operator_arith4 (6) - "Note that the return value of this operator is not a duration."
Divison of two durations should return a dimensionless number and not a duration.
Source: electronicarts/EASTL