spaceship operator fix

This commit is contained in:
Metehan Tuncbilek
2024-10-17 18:44:33 +03:00
parent b75fdc6458
commit 022cd2093f

View File

@@ -61,7 +61,8 @@ namespace OpenVulkano
template<typename T> String operator+(const T& other) const { return m_string + other; }
String operator+(const String& other) const { return m_string + other.m_string; }
template<typename T> int operator<=>(const T& other) const { return m_string <=> other; }
template<typename T> auto operator<=>(const T& other) const { return m_string <=> other; }
auto operator<=>(const String& other) const = default;
explicit operator bool() const { return !m_string.empty(); }
operator std::string() const { return m_string; }