From ab8963c46418225e37a40ed9162eeb7c1af64d90 Mon Sep 17 00:00:00 2001 From: Alexander Yalov Date: Wed, 11 Dec 2024 10:27:26 +0200 Subject: [PATCH 1/2] SPDLOG_LEVEL_NAMES, comment use string_view_literals --- include/spdlog/tweakme.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index a47a90764..78a329165 100644 --- a/include/spdlog/tweakme.h +++ b/include/spdlog/tweakme.h @@ -104,6 +104,13 @@ // // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY // CRITICAL", "OFF" } +// +// Starting with C++17 use string_view_literals: +// +// #include +// using namespace std::string_view_literals; +// #define SPDLOG_LEVEL_NAMES { "MY TRACE"sv, "MY DEBUG"sv, "MY INFO"sv, "MY WARNING"sv, "MY ERROR"sv, "MY +// CRITICAL"sv, "OFF"sv } /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// From 640102fff8bfbeabb6de9c8c9f36af2f11d4390d Mon Sep 17 00:00:00 2001 From: Alexander Yalov Date: Wed, 11 Dec 2024 10:56:34 +0200 Subject: [PATCH 2/2] SPDLOG_LEVEL_NAMES, comment use string_view_literals --- include/spdlog/tweakme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index 78a329165..c4449c904 100644 --- a/include/spdlog/tweakme.h +++ b/include/spdlog/tweakme.h @@ -105,7 +105,7 @@ // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY // CRITICAL", "OFF" } // -// Starting with C++17 use string_view_literals: +// For C++17 use string_view_literals: // // #include // using namespace std::string_view_literals;