forked from lix-project/lix
fmt(): Handle std::string_view
This commit is contained in:
parent
50aae0a14c
commit
581693bdea
|
@ -44,6 +44,11 @@ inline std::string fmt(const std::string & s)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline std::string fmt(std::string_view s)
|
||||||
|
{
|
||||||
|
return std::string(s);
|
||||||
|
}
|
||||||
|
|
||||||
inline std::string fmt(const char * s)
|
inline std::string fmt(const char * s)
|
||||||
{
|
{
|
||||||
return s;
|
return s;
|
||||||
|
|
Loading…
Reference in a new issue