fmt(): Handle std::string_view

This commit is contained in:
Eelco Dolstra 2023-11-01 16:33:22 +01:00
parent 50aae0a14c
commit 581693bdea

View file

@ -44,6 +44,11 @@ inline std::string fmt(const std::string & s)
return s;
}
inline std::string fmt(std::string_view s)
{
return std::string(s);
}
inline std::string fmt(const char * s)
{
return s;