diff --git a/src/json.hpp b/src/json.hpp index 2f0c8d5c9..b357a70fb 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) { - static constexpr std::array order = {{ + std::array order = {{ 0, // null 3, // object 4, // array diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index c10a9cc6d..f25ecb075 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