diff options
Diffstat (limited to 'serialize/ground-atlas.hpp')
-rw-r--r-- | serialize/ground-atlas.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/serialize/ground-atlas.hpp b/serialize/ground-atlas.hpp index 20b50537..e74792a5 100644 --- a/serialize/ground-atlas.hpp +++ b/serialize/ground-atlas.hpp @@ -1,4 +1,5 @@ #pragma once +#include "compat/borrowed-ptr.hpp" #include <nlohmann/json_fwd.hpp> namespace floormat { @@ -18,9 +19,9 @@ struct adl_serializer<floormat::ground_def> final { }; template<> -struct adl_serializer<std::shared_ptr<floormat::ground_atlas>> final { - static void to_json(json& j, const std::shared_ptr<const floormat::ground_atlas>& x); - static void from_json(const json& j, std::shared_ptr<floormat::ground_atlas>& x); +struct adl_serializer<floormat::bptr<floormat::ground_atlas>> final { + static void to_json(json& j, const floormat::bptr<const floormat::ground_atlas>& x); + static void from_json(const json& j, floormat::bptr<floormat::ground_atlas>& x); }; template<> |