https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108265
Bug ID: 108265 Summary: chrono::hh_mm_ss can't be constructed from unsigned durations Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: mwd at md5i dot com Target Milestone: --- chrono::hh_mm_ss can't be constructed from unsigned durations. For example: #include <chrono> int main() { std::chrono::duration<unsigned> dur{}; auto hms = std::chrono::hh_mm_ss(dur); } This fails because the hh_mm_ss constructor calls chrono::abs on the passed in duration, and chrono::abs doesn't participate in overload resolution when the duration is unsigned.