Why is there a static function that returns the zero representation of a std::chrono::duration type ?
Isn't:
std::chrono seconds s;
s = std::chrono::seconds(0);
exactly the same as:
std::chrono::seconds s;
s = std::chrono::seconds::zero()
?
And is there a generic chrono::duration::zero object/function, that has an implicit conversion into each duration type ? That may be useful in a non-template situation.
seconds s = durationZero;
minutes m = durationZero;
This way, changing the duration type/precision would not affect the "zero assignments".