Skip to content

Commit

Permalink
noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jan 6, 2025
1 parent f467be8 commit 08a9604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/spdlog/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SPDLOG_API logger {
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;
Expand Down
2 changes: 1 addition & 1 deletion src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 08a9604

Please sign in to comment.