#pragma once #include #include #include #include namespace yas::detail { template struct serializer< type_prop::not_a_fundamental, ser_case::use_internal_serializer, F, std::filesystem::path> { public: template static Archive& save(Archive& ar, const std::filesystem::path& p) { ar(p.generic_string()); return ar; } template static Archive& load(Archive& ar, std::filesystem::path& p) { std::string str; ar(str); p = std::filesystem::path(str).lexically_normal(); return ar; } }; } // namespace yas::detail