From 89e5c20ca97838bf8efbb8c0e114dda1b8037b7d Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Mon, 1 Aug 2022 07:13:20 +0000 Subject: [PATCH] [libc][NFC] Mark a constructor of StringView to be constexpr. --- libc/src/__support/CPP/StringView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/src/__support/CPP/StringView.h b/libc/src/__support/CPP/StringView.h index a82cec4..2969bc7 100644 --- a/libc/src/__support/CPP/StringView.h +++ b/libc/src/__support/CPP/StringView.h @@ -56,7 +56,7 @@ public: // Ctor for raw literal. template - StringView(const char (&Str)[N]) : StringView(Str, N - 1) {} + constexpr StringView(const char (&Str)[N]) : StringView(Str, N - 1) {} constexpr const char *data() const { return Data; } -- 2.7.4