summaryrefslogtreecommitdiffhomepage
path: root/serialize/wall-atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-22 09:47:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-22 09:47:25 +0100
commit28ba97727326c05c9347b50b0114f01c0ec8b1df (patch)
tree223712106e660dec018f7dfc3329ca48e5c8fb11 /serialize/wall-atlas.hpp
parentb7006b670843f692bc14aa9932bffd44f6a629f7 (diff)
a
Diffstat (limited to 'serialize/wall-atlas.hpp')
-rw-r--r--serialize/wall-atlas.hpp18
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;