Skip to content

Commit

Permalink
Fix headers for JSON abstractions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-j-h committed Feb 12, 2016
1 parent 4b8c0ac commit a6d406d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/util/json_container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <variant/variant.hpp>

#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <unordered_map>

namespace osrm
Expand All @@ -52,16 +52,16 @@ struct Array;

struct String
{
String() {}
String(const char *value) : value(value) {}
String(std::string value) : value(std::move(value)) {}
String() = default;
String(const char *value_) : value{value_} {}
String(std::string value_) : value{std::move(value_)} {}
std::string value;
};

struct Number
{
Number() {}
Number(double value) : value(static_cast<double>(value)) {}
Number() = default;
Number(double value_) : value{value_} {}
double value;
};

Expand Down
5 changes: 5 additions & 0 deletions include/util/json_renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

#include "osrm/json_container.hpp"

#include <ostream>
#include <vector>
#include <iterator>
#include <string>

namespace osrm
{
namespace util
Expand Down

0 comments on commit a6d406d

Please sign in to comment.