mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
add missing default
This commit is contained in:
@@ -775,6 +775,7 @@ inline bool operator==(const toml::value& lhs, const toml::value& rhs)
|
|||||||
return lhs.cast<value_t::Table >() == rhs.cast<value_t::Table >();
|
return lhs.cast<value_t::Table >() == rhs.cast<value_t::Table >();
|
||||||
case value_t::Empty : return true;
|
case value_t::Empty : return true;
|
||||||
case value_t::Unknown : return false;
|
case value_t::Unknown : return false;
|
||||||
|
default: return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
inline bool operator<(const toml::value& lhs, const toml::value& rhs)
|
inline bool operator<(const toml::value& lhs, const toml::value& rhs)
|
||||||
@@ -798,6 +799,7 @@ inline bool operator<(const toml::value& lhs, const toml::value& rhs)
|
|||||||
return lhs.cast<value_t::Table >() < rhs.cast<value_t::Table >();
|
return lhs.cast<value_t::Table >() < rhs.cast<value_t::Table >();
|
||||||
case value_t::Empty : return false;
|
case value_t::Empty : return false;
|
||||||
case value_t::Unknown : return false;
|
case value_t::Unknown : return false;
|
||||||
|
default: return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user