Explorar el Código

AK: Add formatter for LexcialPath.

asynts hace 4 años
padre
commit
cf6980848b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      AK/LexicalPath.h

+ 8 - 0
AK/LexicalPath.h

@@ -64,6 +64,14 @@ private:
     bool m_is_absolute { false };
     bool m_is_absolute { false };
 };
 };
 
 
+template<>
+struct Formatter<LexicalPath> : Formatter<StringView> {
+    void format(TypeErasedFormatParams& params, FormatBuilder& builder, const LexicalPath& value)
+    {
+        Formatter<StringView>::format(params, builder, value.string());
+    }
+};
+
 };
 };
 
 
 using AK::LexicalPath;
 using AK::LexicalPath;