From b4e75bedf0db76b90ae6ccc100734298429577d3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Mar 2016 14:11:47 +0100 Subject: [PATCH] util/StringView: make nullptr_t constructor "constexpr" --- src/util/StringView.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {