diff --git a/src/util/TemplateString.hxx b/src/util/TemplateString.hxx index 447992242..a456459a1 100644 --- a/src/util/TemplateString.hxx +++ b/src/util/TemplateString.hxx @@ -30,6 +30,8 @@ #ifndef TEMPLATE_STRING_HXX #define TEMPLATE_STRING_HXX +#include "StringView.hxx" + #include // for std::size() #include #include @@ -48,6 +50,10 @@ struct Buffer { constexpr operator std::string_view() const noexcept { return {value, size}; } + + constexpr operator StringView() const noexcept { + return {value, size}; + } }; /**