提交 f5470d47 编写于 作者: N Niels

made array static constexpr (#79)

上级 afc7f238
......@@ -300,7 +300,7 @@ class basic_json
*/
friend bool operator<(const value_t lhs, const value_t rhs)
{
std::array<uint8_t, 7> order = {{
static constexpr std::array<uint8_t, 7> order = {{
0, // null
3, // object
4, // array
......
......@@ -300,7 +300,7 @@ class basic_json
*/
friend bool operator<(const value_t lhs, const value_t rhs)
{
std::array<uint8_t, 7> order = {{
static constexpr std::array<uint8_t, 7> order = {{
0, // null
3, // object
4, // array
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册