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

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