Skip to content

Commit

Permalink
SPDLOG_LEVEL_NAMES, comment use string_view_literals
Browse files Browse the repository at this point in the history
  • Loading branch information
yalov committed Dec 11, 2024
1 parent 24dde31 commit ab8963c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/spdlog/tweakme.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <string_view>
// 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 }
///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit ab8963c

Please sign in to comment.