diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-16 12:27:46 +0200 |
commit | 47b9691f9bde62ea62f6601503997d93ed7ab64c (patch) | |
tree | f0e08b4f37ced066ac18defdf233eec0e91b6cc0 /serialize/ground-atlas.hpp | |
parent | 6aabc74a535da1f2d5cf866346b31939d097cbac (diff) |
wa
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<> |