File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1001,6 +1001,9 @@ std::partial_ordering Value::operator<=>(const Value& rhs) const noexcept
1001
1001
}
1002
1002
}
1003
1003
}
1004
+
1005
+ default :
1006
+ break ;
1004
1007
}
1005
1008
1006
1009
return typeOrder;
@@ -1017,6 +1020,9 @@ std::partial_ordering Value::operator<=>(const Value& rhs) const noexcept
1017
1020
case Type::String:
1018
1021
return std::get<StringData>(lhsData) <=> std::get<StringData>(rhsData);
1019
1022
1023
+ case Type::Null:
1024
+ return std::get<NullData>(lhsData) <=> std::get<NullData>(rhsData);
1025
+
1020
1026
case Type::Boolean:
1021
1027
return std::get<BooleanType>(lhsData) <=> std::get<BooleanType>(rhsData);
1022
1028
@@ -1034,9 +1040,10 @@ std::partial_ordering Value::operator<=>(const Value& rhs) const noexcept
1034
1040
1035
1041
case Type::Scalar:
1036
1042
return std::get<ScalarData>(lhsData) <=> std::get<ScalarData>(rhsData);
1037
- }
1038
1043
1039
- return std::partial_ordering::unordered;
1044
+ default :
1045
+ return std::partial_ordering::unordered;
1046
+ }
1040
1047
}
1041
1048
1042
1049
bool Value::operator ==(const Value& rhs) const noexcept
You can’t perform that action at this time.
0 commit comments