Use std::string_view for key type in json::Object
This commit is contained in:
parent
97872e34d8
commit
a94368cc87
@ -81,10 +81,11 @@ struct Comparator
|
|||||||
|
|
||||||
const auto &rhs_child = rhs.values.find(key)->second;
|
const auto &rhs_child = rhs.values.find(key)->second;
|
||||||
const auto &lhs_child = lhs.values.find(key)->second;
|
const auto &lhs_child = lhs.values.find(key)->second;
|
||||||
auto is_same =
|
auto is_same = std::visit(Comparator(reason,
|
||||||
std::visit(Comparator(reason, lhs_path + "." + std::string(key), rhs_path + "." + std::string(key)),
|
lhs_path + "." + std::string(key),
|
||||||
lhs_child,
|
rhs_path + "." + std::string(key)),
|
||||||
rhs_child);
|
lhs_child,
|
||||||
|
rhs_child);
|
||||||
if (!is_same)
|
if (!is_same)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user