From f5470d47ff0be52b2ec5381fbc678e3806e68b7d Mon Sep 17 00:00:00 2001 From: Niels Date: Tue, 2 Jun 2015 21:27:49 +0200 Subject: [PATCH] made array static constexpr (#79) --- src/json.hpp | 2 +- src/json.hpp.re2c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 9d9cab32..0fa57b1c 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -300,7 +300,7 @@ class basic_json */ friend bool operator<(const value_t lhs, const value_t rhs) { - std::array order = {{ + static constexpr std::array order = {{ 0, // null 3, // object 4, // array diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 4c666d92..003017de 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -300,7 +300,7 @@ class basic_json */ friend bool operator<(const value_t lhs, const value_t rhs) { - std::array order = {{ + static constexpr std::array order = {{ 0, // null 3, // object 4, // array