File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1658,16 +1658,23 @@ FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool {
1658
1658
// A base class for compile-time strings.
1659
1659
struct compile_string {};
1660
1660
1661
+ #if defined(_MSC_VER)
1662
+ #pragma warning(push)
1663
+ #pragma warning(disable : 4459) // declaration hides global declaration
1664
+ #endif
1661
1665
template <typename T, typename Char>
1662
1666
FMT_VISIBILITY (" hidden" ) // Suppress an ld warning on macOS (#3769).
1663
1667
FMT_CONSTEXPR auto invoke_parse (parse_context<Char>& ctx) -> const Char* {
1664
1668
using mapped_type = remove_cvref_t <mapped_t <T, Char>>;
1665
- constexpr bool is_formattable =
1669
+ constexpr bool formattable =
1666
1670
std::is_constructible<formatter<mapped_type, Char>>::value;
1667
- if (!is_formattable ) return ctx.begin (); // Error is reported in the value ctor.
1668
- using formatted_type = conditional_t <is_formattable , mapped_type, int >;
1671
+ if (!formattable ) return ctx.begin (); // Error is reported in the value ctor.
1672
+ using formatted_type = conditional_t <formattable , mapped_type, int >;
1669
1673
return formatter<formatted_type, Char>().parse (ctx);
1670
1674
}
1675
+ #ifdef _MSC_VER
1676
+ #pragma warning(pop) // Restore 4459
1677
+ #endif
1671
1678
1672
1679
template <typename ... T> struct arg_pack {};
1673
1680
You can’t perform that action at this time.
0 commit comments