From 2a7b995723e7add856923bc5e82b41f570b5d7f6 Mon Sep 17 00:00:00 2001 From: gabime Date: Wed, 10 Oct 2018 00:57:16 +0300 Subject: [PATCH] Added noexcept some function in common.h --- include/spdlog/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 7f22e24c..03b9773c 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -85,17 +85,17 @@ static const char *level_names[] SPDLOG_LEVEL_NAMES; static const char *short_level_names[]{"T", "D", "I", "W", "E", "C", "O"}; -inline const char *to_c_str(spdlog::level::level_enum l) +inline const char *to_c_str(spdlog::level::level_enum l) noexcept { return level_names[l]; } -inline const char *to_short_c_str(spdlog::level::level_enum l) +inline const char *to_short_c_str(spdlog::level::level_enum l) noexcept { return short_level_names[l]; } -inline spdlog::level::level_enum from_str(const std::string &name) +inline spdlog::level::level_enum from_str(const std::string &name) noexcept { static std::unordered_map name_to_level = // map string->level {{level_names[0], level::trace}, // trace