operator/(duration, duration) has wrong return type
Opened this issue · 0 comments
mtnpke commented
operator/ with two durations as arguments is implemented to return a duration:
Lines 337 to 343 in 7fadbf0
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.