Use std::u8string_view in debug logger overloads parameters.

crashfix_debugdraw
Project579 2 years ago
parent 1a79f098fa
commit a60cebd0f9

@ -63,7 +63,7 @@ Log& Log::operator<<(std::u8string&& rhs)
return *this; return *this;
} }
Log& Log::operator<<(const std::u8string& rhs) Log& Log::operator<<(const std::u8string_view rhs)
{ {
if (mShouldLog) if (mShouldLog)
std::cout << Misc::StringUtils::u8StringToString(rhs); std::cout << Misc::StringUtils::u8StringToString(rhs);

@ -43,7 +43,7 @@ public:
Log& operator<<(std::u8string&& rhs); Log& operator<<(std::u8string&& rhs);
Log& operator<<(const std::u8string& rhs); Log& operator<<(std::u8string_view rhs);
Log& operator<<(const char8_t* rhs); Log& operator<<(const char8_t* rhs);

Loading…
Cancel
Save