mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Added nodiscard to level_to_number()
This commit is contained in:
parent
73eb6bc1f5
commit
a34fb3761c
@ -186,7 +186,7 @@ enum class level
|
||||
#define SPDLOG_SHORT_LEVEL_NAMES {"T", "D", "I", "W", "E", "C", "O"}
|
||||
#endif
|
||||
|
||||
constexpr size_t level_to_number(level lvl) noexcept
|
||||
[[nodiscard]] constexpr size_t level_to_number(level lvl) noexcept
|
||||
{
|
||||
return static_cast<size_t>(lvl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user