diff --git a/src/formatters.h b/src/formatters.h index 78ee90fd..23e89905 100644 --- a/src/formatters.h +++ b/src/formatters.h @@ -1,6 +1,7 @@ #pragma once #include "./formatters/enums.h" +#include "./formatters/path.h" #include "./formatters/qt.h" #include "./formatters/random_access_containers.h" -#include "./formatters/strings.h" \ No newline at end of file +#include "./formatters/strings.h" diff --git a/src/formatters/path.h b/src/formatters/path.h new file mode 100644 index 00000000..d59050b6 --- /dev/null +++ b/src/formatters/path.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include +#include + +template +struct std::formatter + : std::formatter +{ + template + FmtContext::iterator format(const std::filesystem::path& v, FmtContext& ctx) const + { + return std::formatter::format(v.native(), + ctx); + } +};