fixed test case
This commit is contained in:
parent
ab1ff9de53
commit
1ac4d673b6
2 changed files with 14 additions and 0 deletions
|
@ -239,6 +239,13 @@ class basic_json
|
|||
2 // float
|
||||
}
|
||||
};
|
||||
|
||||
// discarded values are not comparable
|
||||
if (lhs == value_t::discarded or rhs == value_t::discarded)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return order[static_cast<std::size_t>(lhs)] < order[static_cast<std::size_t>(rhs)];
|
||||
}
|
||||
|
||||
|
|
|
@ -239,6 +239,13 @@ class basic_json
|
|||
2 // float
|
||||
}
|
||||
};
|
||||
|
||||
// discarded values are not comparable
|
||||
if (lhs == value_t::discarded or rhs == value_t::discarded)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return order[static_cast<std::size_t>(lhs)] < order[static_cast<std::size_t>(rhs)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue