mirror of
https://github.com/nlohmann/json.git
synced 2025-07-28 12:02:00 +03:00
made array static constexpr (#79)
This commit is contained in:
@ -300,7 +300,7 @@ class basic_json
|
|||||||
*/
|
*/
|
||||||
friend bool operator<(const value_t lhs, const value_t rhs)
|
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
|
0, // null
|
||||||
3, // object
|
3, // object
|
||||||
4, // array
|
4, // array
|
||||||
|
@ -300,7 +300,7 @@ class basic_json
|
|||||||
*/
|
*/
|
||||||
friend bool operator<(const value_t lhs, const value_t rhs)
|
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
|
0, // null
|
||||||
3, // object
|
3, // object
|
||||||
4, // array
|
4, // array
|
||||||
|
Reference in New Issue
Block a user