We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 694a9ba commit b800102Copy full SHA for b800102
2 files changed
src/formatters.h
@@ -1,6 +1,7 @@
1
#pragma once
2
3
#include "./formatters/enums.h"
4
+#include "./formatters/path.h"
5
#include "./formatters/qt.h"
6
#include "./formatters/random_access_containers.h"
-#include "./formatters/strings.h"
7
+#include "./formatters/strings.h"
src/formatters/path.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <filesystem>
+#include <format>
+#include <type_traits>
+template <class CharT>
8
+struct std::formatter<std::filesystem::path, CharT>
9
+ : std::formatter<std::filesystem::path::string_type, CharT>
10
+{
11
+ template <class FmtContext>
12
+ FmtContext::iterator format(const std::filesystem::path& v, FmtContext& ctx) const
13
+ {
14
+ return std::formatter<std::filesystem::path::string_type, CharT>::format(v.native(),
15
+ ctx);
16
+ }
17
+};
0 commit comments