diff options
Diffstat (limited to 'serialize/wall-atlas.hpp')
-rw-r--r-- | serialize/wall-atlas.hpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/serialize/wall-atlas.hpp b/serialize/wall-atlas.hpp index f531a48e..b69f7e96 100644 --- a/serialize/wall-atlas.hpp +++ b/serialize/wall-atlas.hpp @@ -3,24 +3,12 @@ #include <memory> #include <nlohmann/json_fwd.hpp> -namespace nlohmann { - template<> -struct adl_serializer<floormat::Wall::Frame> -{ - static void to_json(json& j, const floormat::Wall::Frame& x); - static void from_json(const json& j, floormat::Wall::Frame& x); +struct nlohmann::adl_serializer<floormat::Wall::Frame> { + static void to_json(json& j, const floormat::Wall::Frame& val); + static void from_json(const json& j, floormat::Wall::Frame& val); }; -template<> -struct adl_serializer<std::shared_ptr<floormat::wall_atlas>> -{ - static void to_json(json& j, const std::shared_ptr<const floormat::wall_atlas>& x); - static void from_json(const json& j, std::shared_ptr<floormat::wall_atlas>& x); -}; - -} // namespace nlohmann - namespace floormat::Wall::detail { using nlohmann::json; |