Skip to content

Commit

Permalink
fmtlib#2968: Eliminate preprocessor condition that enables the format…
Browse files Browse the repository at this point in the history
…ter specialization for std::filesystem::path
  • Loading branch information
Dani-Hub committed Jul 6, 2022
1 parent 26a2844 commit c6f372b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ inline void write_escaped_path<std::filesystem::path::value_type>(

} // namespace detail

#if !FMT_MSC_VERSION || FMT_MSC_VERSION >= 1920
// For MSVC 2017 and earlier using the partial specialization
// would cause an ambiguity error, therefore we provide it only
// conditionally.
template <typename Char>
struct formatter<std::filesystem::path, Char>
: formatter<basic_string_view<Char>> {
Expand All @@ -73,7 +69,6 @@ struct formatter<std::filesystem::path, Char>
basic_string_view<Char>(quoted.data(), quoted.size()), ctx);
}
};
#endif
FMT_END_NAMESPACE
#endif

Expand Down

0 comments on commit c6f372b

Please sign in to comment.