Skip to content

Commit

Permalink
OrcLib: Text: Fmt: make const specialization for std::filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Apr 25, 2024
1 parent 0e15403 commit 00963e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OrcLib/Text/Fmt/std_filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template <>
struct fmt::formatter<std::filesystem::path> : public fmt::formatter<std::string_view>
{
template <typename FormatContext>
auto format(const std::filesystem::path& path, FormatContext& ctx)
auto format(const std::filesystem::path& path, FormatContext& ctx) const
{
return fmt::formatter<std::string_view>::format(path.string(), ctx);
}
Expand All @@ -27,7 +27,7 @@ template <>
struct fmt::formatter<std::filesystem::path, wchar_t> : public fmt::formatter<std::wstring_view, wchar_t>
{
template <typename FormatContext>
auto format(const std::filesystem::path& path, FormatContext& ctx)
auto format(const std::filesystem::path& path, FormatContext& ctx) const
{
return fmt::formatter<std::wstring_view, wchar_t>::format(path.wstring(), ctx);
}
Expand Down

0 comments on commit 00963e3

Please sign in to comment.