fixed test case
This commit is contained in:
1 parent
ab1ff9de53
commit
1ac4d673b6
2 files changed
+14
No files matched your search
@@ -239,6 +239,13 @@ class basic_json
|
|||||||
2 // float
|
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)];
|
return order[static_cast<std::size_t>(lhs)] < order[static_cast<std::size_t>(rhs)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -239,6 +239,13 @@ class basic_json
|
|||||||
2 // float
|
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)];
|
return order[static_cast<std::size_t>(lhs)] < order[static_cast<std::size_t>(rhs)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user