Created attachment 21624 [details] code to reproduce Defining an operator/ with a chrono::duration and a custom type fails to compile with libc++. Example code attached Problem description initially on https://stackoverflow.com/q/55167862/620382 Suggested patch by Howard Hinnant https://stackoverflow.com/a/55203313/620382
Created attachment 21625 [details] patch by Howard Hinnant
Nice patch, Howard. Needs more cowbell, though. In particular, it needs to deal with `operator%`. Working on it...
Howard's patch (when applied twice) fixes the problem; except on C++03.
Multiply has similar problems, too.
Are there tests for these operators?
(In reply to Zoe Carver from comment #5) > Are there tests for these operators? There are ... some. I have added more as I investigate this bug.
Fixed in r357410.