1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-09 11:01:47 +03:00

fixed test case

This commit is contained in:
Niels
2015-05-03 18:46:26 +02:00
parent ab1ff9de53
commit 1ac4d673b6
2 changed files with 14 additions and 0 deletions

View File

@ -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)];
}