diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index b2456a945..1bde626d0 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -47,7 +47,7 @@ struct StringView : ConstBuffer { :ConstBuffer(_data, _data != nullptr ? strlen(_data) : 0) {} - StringView(std::nullptr_t n) + constexpr StringView(std::nullptr_t n) :ConstBuffer(n) {} static constexpr StringView Empty() {