From 08a9604a57a3cc161eaaeacf72f71b1d6894e14a Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 6 Jan 2025 10:45:17 +0200 Subject: [PATCH] noexcept --- include/spdlog/logger.h | 2 +- src/logger.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index c4fc18dc..68e149b7 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -42,7 +42,7 @@ public: logger(std::string name, sinks_init_list sinks) : logger(std::move(name), sinks.begin(), sinks.end()) {} - logger(const logger &other) noexcept; + logger(const logger &other) ; logger(logger &&other) noexcept; ~logger() = default; diff --git a/src/logger.cpp b/src/logger.cpp index badb2bd3..dc480bae 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -9,7 +9,7 @@ namespace spdlog { // public methods -logger::logger(const logger &other) noexcept +logger::logger(const logger &other) : name_(other.name_), sinks_(other.sinks_), level_(other.level_.load(std::memory_order_relaxed)),