From dea3a59a9d360a130a6fd42969339b7919d554f0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 20 Nov 2022 18:17:59 +0100 Subject: fix StringView ctor not marked as constexpr --- entity/name-of.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'entity') diff --git a/entity/name-of.hpp b/entity/name-of.hpp index 2f86d9b8..81feee19 100644 --- a/entity/name-of.hpp +++ b/entity/name-of.hpp @@ -11,8 +11,7 @@ template static constexpr auto mangled_name() { // NOLINT(bugprone-reserved-identifier) using namespace Corrade::Containers; using SVF = StringViewFlag; - constexpr const char* str = FM_PRETTY_FUNCTION; - return StringView { str, Implementation::strlen_(str), SVF::Global|SVF::NullTerminated }; + return StringView { FM_PRETTY_FUNCTION, SVF::Global|SVF::NullTerminated }; } template constexpr inline auto name_of = mangled_name(); -- cgit v1.2.3