util/StringView: make nullptr_t constructor "constexpr"
This commit is contained in:
parent
5482ef5451
commit
b4e75bedf0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user