summaryrefslogtreecommitdiffhomepage
path: root/serialize/corrade-string.hpp
blob: 6cfd84720007be65c03e4ea07aa71aa9777280be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <Corrade/Containers/String.h>
#include <nlohmann/json_fwd.hpp>

namespace nlohmann {

template<>
struct adl_serializer<Corrade::Containers::String> {
    static void to_json(json& j, const Corrade::Containers::String& val);
    static void from_json(const json& j, Corrade::Containers::String& val);
};

template<>
struct adl_serializer<Corrade::Containers::StringView> {
    static void to_json(json& j, Corrade::Containers::StringView val);
    static void from_json(const json& j, Corrade::Containers::StringView& val);
};

} // namespace nlohmann