review fix for string

This commit is contained in:
Metehan Tuncbilek
2024-10-17 18:07:27 +03:00
parent f7c6682cf5
commit b75fdc6458

View File

@@ -61,12 +61,7 @@ namespace OpenVulkano
template<typename T> String operator+(const T& other) const { return m_string + other; } 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; } String operator+(const String& other) const { return m_string + other.m_string; }
#if defined(_HAS_CXX20)
template<typename T> int operator<=>(const T& other) const { return m_string <=> other; } template<typename T> int operator<=>(const T& other) const { return m_string <=> other; }
#endif
template<typename T> bool operator==(const T& other) const { return m_string == other; }
template<typename T> bool operator!=(const T& other) const { return m_string != other; }
explicit operator bool() const { return !m_string.empty(); } explicit operator bool() const { return !m_string.empty(); }
operator std::string() const { return m_string; } operator std::string() const { return m_string; }