From 766fb9647e02aea00c9935a306d3c1d956afbec1 Mon Sep 17 00:00:00 2001 From: terik23 Date: Tue, 26 Mar 2019 16:41:11 +0500 Subject: [PATCH] clean-up --- include/nameof.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 0b424a1..04292c5 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -191,7 +191,7 @@ template struct nameof_enum_impl_t final { [[nodiscard]] constexpr std::string_view operator()(int value) const noexcept { if constexpr (V > std::numeric_limits>::max()) { - return {"nameof_enum::out_of_range"}; + return "nameof_enum::out_of_range"; } switch (value - V) { @@ -220,7 +220,7 @@ struct nameof_enum_impl_t final { template struct nameof_enum_impl_t final { [[nodiscard]] constexpr std::string_view operator()(int) const noexcept { - return {"nameof_enum::out_of_range"}; + return "nameof_enum::out_of_range"; } };