Nix
2.26.3
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
json-impls.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "nlohmann/json_fwd.hpp"
5
6
// Following https://github.com/nlohmann/json#how-can-i-use-get-for-non-default-constructiblenon-copyable-types
7
#define JSON_IMPL(TYPE) \
8
namespace nlohmann { \
9
using namespace nix; \
10
template <> \
11
struct adl_serializer<TYPE> { \
12
static TYPE from_json(const json & json); \
13
static void to_json(json & json, TYPE t); \
14
}; \
15
}
src
libutil
json-impls.hh
Generated by
1.13.2