acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_format.h
1// Created with speccylad (Twitch) by camilo on
2// 2023-10-19 23:43 <3ThomasBorregaardSorensen!!
3#pragma once
4
5
6#ifdef __STD_FORMAT__
7
8
9namespace std
10{
11
12
13 template <>
14 struct std::formatter<::file::path> :
15 public std::formatter<std::string>
16 {
17
18 template<typename Context>
19 auto format(const ::file::path& path, Context& ctx) const
20 {
21
22 return formatter<string>::format(std::format("{}", path.c_str()), ctx);
23
24 }
25
26 };
27
28
29} // namespace std
30
31
32
33#endif // __STD_FORMAT__