diff options
author | Christian Stenger <[email protected]> | 2015-11-11 08:07:02 +0100 |
---|---|---|
committer | David Schulz <[email protected]> | 2015-11-11 07:45:39 +0000 |
commit | 66c2ba607605940c77c6b13d79e66506cc2c7f19 (patch) | |
tree | 6590597c25fbb84c97fa14ec92b0803401c20871 /src/shared/json/json.h | |
parent | 90ed0cf793ba19541d634a7faa9f227b7f042c71 (diff) |
Json: Fix compile for MSVC2013
Change-Id: I5266165c64bb4c1bdb75ac04f9a5fadb6d97e6ee
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/shared/json/json.h')
-rw-r--r-- | src/shared/json/json.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/shared/json/json.h b/src/shared/json/json.h index 7bc945cd3e9..4b9c543ff0c 100644 --- a/src/shared/json/json.h +++ b/src/shared/json/json.h @@ -34,6 +34,7 @@ #ifndef JSONVALUE_H #define JSONVALUE_H +#include <cstdint> #include <initializer_list> #include <string> #include <vector> @@ -390,8 +391,8 @@ public: typedef JsonValue value_type; typedef JsonValueRef reference; - constexpr iterator() : o(nullptr), i(0) {} - constexpr iterator(JsonObject *obj, int index) : o(obj), i(index) {} + iterator() : o(nullptr), i(0) {} + iterator(JsonObject *obj, int index) : o(obj), i(index) {} std::string key() const { return o->keyAt(i); } JsonValueRef value() const { return JsonValueRef(o, i); } @@ -428,8 +429,8 @@ public: typedef JsonValue value_type; typedef JsonValue reference; - constexpr const_iterator() : o(nullptr), i(0) {} - constexpr const_iterator(const JsonObject *obj, int index) + const_iterator() : o(nullptr), i(0) {} + const_iterator(const JsonObject *obj, int index) : o(obj), i(index) {} const_iterator(const iterator &other) : o(other.o), i(other.i) {} |