summaryrefslogtreecommitdiffhomepage
path: root/serialize/ground-atlas.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-16 12:27:46 +0200
commit47b9691f9bde62ea62f6601503997d93ed7ab64c (patch)
treef0e08b4f37ced066ac18defdf233eec0e91b6cc0 /serialize/ground-atlas.hpp
parent6aabc74a535da1f2d5cf866346b31939d097cbac (diff)
wa
Diffstat (limited to 'serialize/ground-atlas.hpp')
-rw-r--r--serialize/ground-atlas.hpp7
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<>