diff --git a/include/fmt/core.h b/include/fmt/core.h index 906e322f..e36bbe3a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -682,10 +682,10 @@ constexpr auto has_const_formatter() -> bool { template inline auto get_container(std::back_insert_iterator it) -> Container& { - using bi_iterator = std::back_insert_iterator; - struct accessor : bi_iterator { - accessor(bi_iterator iter) : bi_iterator(iter) {} - using bi_iterator::container; + using base = std::back_insert_iterator; + struct accessor : base { + accessor(base b) : base(b) {} + using base::container; }; return *accessor(it).container; }