Fix headers for JSON abstractions
This commit is contained in:
parent
4b8c0ac143
commit
a6d406d2c3
@ -33,9 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include <variant/variant.hpp>
|
#include <variant/variant.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <utility>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace osrm
|
namespace osrm
|
||||||
@ -52,16 +52,16 @@ struct Array;
|
|||||||
|
|
||||||
struct String
|
struct String
|
||||||
{
|
{
|
||||||
String() {}
|
String() = default;
|
||||||
String(const char *value) : value(value) {}
|
String(const char *value_) : value{value_} {}
|
||||||
String(std::string value) : value(std::move(value)) {}
|
String(std::string value_) : value{std::move(value_)} {}
|
||||||
std::string value;
|
std::string value;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Number
|
struct Number
|
||||||
{
|
{
|
||||||
Number() {}
|
Number() = default;
|
||||||
Number(double value) : value(static_cast<double>(value)) {}
|
Number(double value_) : value{value_} {}
|
||||||
double value;
|
double value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@
|
|||||||
|
|
||||||
#include "osrm/json_container.hpp"
|
#include "osrm/json_container.hpp"
|
||||||
|
|
||||||
|
#include <ostream>
|
||||||
|
#include <vector>
|
||||||
|
#include <iterator>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace osrm
|
namespace osrm
|
||||||
{
|
{
|
||||||
namespace util
|
namespace util
|
||||||
|
Loading…
Reference in New Issue
Block a user