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
10011001 }
10021002 }
10031003 }
1004+
1005+ default :
1006+ break ;
10041007 }
10051008
10061009 return typeOrder;
@@ -1017,6 +1020,9 @@ std::partial_ordering Value::operator<=>(const Value& rhs) const noexcept
10171020 case Type::String:
10181021 return std::get<StringData>(lhsData) <=> std::get<StringData>(rhsData);
10191022
1023+ case Type::Null:
1024+ return std::get<NullData>(lhsData) <=> std::get<NullData>(rhsData);
1025+
10201026 case Type::Boolean:
10211027 return std::get<BooleanType>(lhsData) <=> std::get<BooleanType>(rhsData);
10221028
@@ -1034,9 +1040,10 @@ std::partial_ordering Value::operator<=>(const Value& rhs) const noexcept
10341040
10351041 case Type::Scalar:
10361042 return std::get<ScalarData>(lhsData) <=> std::get<ScalarData>(rhsData);
1037- }
10381043
1039- return std::partial_ordering::unordered;
1044+ default :
1045+ return std::partial_ordering::unordered;
1046+ }
10401047}
10411048
10421049bool Value::operator ==(const Value& rhs) const noexcept
You can’t perform that action at this time.
0 commit comments