Added nodiscard to level_to_number()

This commit is contained in:
gabime 2023-09-24 11:50:24 +03:00
parent 73eb6bc1f5
commit a34fb3761c

View File

@ -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);
}