diff options
Diffstat (limited to 'deimos/core/format.h')
-rw-r--r-- | deimos/core/format.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deimos/core/format.h b/deimos/core/format.h index 98d9001..be2e4bf 100644 --- a/deimos/core/format.h +++ b/deimos/core/format.h @@ -37,6 +37,11 @@ struct FormatArg unsigned_integer{value}
{}
+ explicit FormatArg(Span<const char> value) :
+ type{kString},
+ string{value}
+ {}
+
explicit FormatArg(gsl::czstring value) :
type{kString},
string{value, (int64_t)__builtin_strlen(value)}
|