diff --git a/include/fmt/core.h b/include/fmt/core.h index 339a273b..c2a7e307 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -196,6 +196,8 @@ using enable_if_t = typename std::enable_if::type; template using conditional_t = typename std::conditional::type; template using bool_constant = std::integral_constant; +template +using remove_reference_t = typename std::remove_reference::type; struct monostate {}; @@ -1311,8 +1313,7 @@ template , internal::is_contiguous_back_insert_iterator::value)> OutputIt vformat_to(OutputIt out, const S& format_str, basic_format_args> args) { - using container = typename std::remove_reference::type; + using container = remove_reference_t; internal::container_buffer buf((internal::get_container(out))); internal::vformat_to(buf, to_string_view(format_str), args); return out; diff --git a/include/fmt/format.h b/include/fmt/format.h index 4e428af1..28bbe0f4 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3460,7 +3460,7 @@ template class is_output_iterator { template static const char& test(...); typedef decltype(test(typename it_category::type{})) type; - typedef typename std::remove_reference::type result; + typedef remove_reference_t result; public: static const bool value = !std::is_const::value;