also add overloads for std::string

This commit is contained in:
matcool 2024-02-19 17:52:33 -03:00
parent 982e8ab669
commit a19d26d52e

View file

@ -96,11 +96,17 @@ namespace gd {
bool operator==(char const* other) const {
return *this == std::string_view(other);
}
bool operator==(std::string const& other) const {
return *this == std::string_view(other);
}
std::strong_ordering operator<=>(string const& other) const;
std::strong_ordering operator<=>(std::string_view const other) const;
std::strong_ordering operator<=>(char const* other) const {
return *this <=> std::string_view(other);
}
std::strong_ordering operator<=>(std::string const& other) const {
return *this <=> std::string_view(other);
}
operator std::string() const;
operator std::string_view() const;