diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index a47a90764..c4449c904 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" } +// +// For 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 } /////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////