diff --git a/include/fmt/core.h b/include/fmt/core.h index fef44a08..e7a369a8 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -835,11 +835,11 @@ constexpr auto has_const_formatter() -> bool { // Extracts a reference to the container from back_insert_iterator. template -FMT_CONSTEXPR inline auto get_container(std::back_insert_iterator it) - -> Container& { +FMT_CONSTEXPR_LIB inline auto get_container( + std::back_insert_iterator it) -> Container& { using base = std::back_insert_iterator; struct accessor : base { - FMT_CONSTEXPR accessor(base b) : base(b) {} + FMT_CONSTEXPR_LIB accessor(base b) : base(b) {} using base::container; }; return *accessor(it).container;