Merge pull request #1889 from stevenlunt/set_string_view

remove constexpr on level_string_views to fix compilation on C++17 fr…
This commit is contained in:
Gabi Melman 2021-03-25 20:59:37 +02:00 committed by GitHub
commit 1574b5b0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,6 @@
namespace spdlog { namespace spdlog {
namespace level { namespace level {
#if __cplusplus >= 201703L
constexpr
#endif
static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES; static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES;
static const char *short_level_names[] SPDLOG_SHORT_LEVEL_NAMES; static const char *short_level_names[] SPDLOG_SHORT_LEVEL_NAMES;