From c817e0ee801dc1097a02a995aed291fdd7bf332a Mon Sep 17 00:00:00 2001 From: Alexandre Hamez Date: Tue, 2 Jun 2015 11:25:31 +0200 Subject: [PATCH] Make non-mutable array static and constexpr --- src/json.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.hpp b/src/json.hpp index b357a70fb..2f0c8d5c9 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