From a32cea24fd89705cccb555f49469be0d61dcd4ed Mon Sep 17 00:00:00 2001 From: steven lunt Date: Tue, 18 May 2021 19:24:44 -0400 Subject: [PATCH] Revert "remove constexpr on level_string_views to fix compilation on C++17 from addition of set_string_view" This reverts commit ac3e26b0ffeffe1f9b030fabdfcb124dc878480e. --- include/spdlog/common-inl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spdlog/common-inl.h b/include/spdlog/common-inl.h index d0c85c6b..84e5cf41 100644 --- a/include/spdlog/common-inl.h +++ b/include/spdlog/common-inl.h @@ -13,6 +13,9 @@ namespace spdlog { namespace level { +#if __cplusplus >= 201703L +constexpr +#endif static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES; static const char *short_level_names[] SPDLOG_SHORT_LEVEL_NAMES;