util/StringView: make nullptr_t constructor "constexpr"

This commit is contained in:
Max Kellermann 2016-03-18 14:11:47 +01:00
parent 5482ef5451
commit b4e75bedf0

View File

@ -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() {