mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
add explicit const char* overloads for gd::string
This commit is contained in:
parent
6b59217ce1
commit
982e8ab669
1 changed files with 6 additions and 0 deletions
|
@ -93,8 +93,14 @@ namespace gd {
|
|||
|
||||
bool operator==(string const& other) const;
|
||||
bool operator==(std::string_view const other) const;
|
||||
bool operator==(char 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);
|
||||
}
|
||||
|
||||
operator std::string() const;
|
||||
operator std::string_view() const;
|
||||
|
|
Loading…
Reference in a new issue