mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 01:10:26 +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"}
|
#define SPDLOG_SHORT_LEVEL_NAMES {"T", "D", "I", "W", "E", "C", "O"}
|
||||||
#endif
|
#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);
|
return static_cast<size_t>(lvl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user