diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 19989516b452..c43ad011f677 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -667,9 +667,9 @@ struct chrono_formatter { write(second(), 2); #if FMT_SAFE_DURATION_CAST // convert rep->Rep - using Crep = std::chrono::duration; - using CRep = std::chrono::duration; - auto tmpval = fmt_safe_duration_cast(Crep{val}); + using duration_rep = std::chrono::duration; + using duration_Rep = std::chrono::duration; + auto tmpval = fmt_safe_duration_cast(duration_rep{val}); #else auto tmpval = std::chrono::duration(val); #endif