Commit c931edb6 authored by Alberto Miranda's avatar Alberto Miranda ♨️ Committed by Marc Vef
Browse files

Fix template specialization syntax for older compilers

parent 609f0521
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -150,7 +150,9 @@ struct adl_serializer<struct ::stat> {

} // namespace nlohmann

template <> struct fmt::formatter<struct ::dirent> {
namespace fmt {

template <> struct formatter<struct ::dirent> {
    constexpr auto parse(format_parse_context &ctx) {
        // [ctx.begin(), ctx.end()) is a character range that contains a part of
        // the format string starting from the format specifications to be parsed,
@@ -192,4 +194,6 @@ template <> struct fmt::formatter<struct ::dirent> {
        }
};

}

#endif // GKFS_IO_SERIALIZE_HPP