blob: 858a143012eb60f4685d08ffa8164f930474cfcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#pragma once
#include <mbgl/style/conversion.hpp>
#include <mbgl/util/rapidjson.hpp>
namespace mbgl {
namespace style {
namespace conversion {
Value makeValue(const JSValue*);
template <class T, class...Args>
optional<T> convert(const JSValue& value, Error& error, Args&&...args) {
return convert<T>(makeValue(&value), error, std::forward<Args>(args)...);
}
} // namespace conversion
} // namespace style
} // namespace mbgl
|