Commit b4e75bed authored by Max Kellermann's avatar Max Kellermann

util/StringView: make nullptr_t constructor "constexpr"

parent 5482ef54
......@@ -47,7 +47,7 @@ struct StringView : ConstBuffer<char> {
:ConstBuffer<char>(_data,
_data != nullptr ? strlen(_data) : 0) {}
StringView(std::nullptr_t n)
constexpr StringView(std::nullptr_t n)
:ConstBuffer<char>(n) {}
static constexpr StringView Empty() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment