Replaced SPDLOG_CONSTEXPR and SPDLOG_NOEXCEPT macros with c++20 keywords

This commit is contained in:
gabime
2023-07-28 18:27:05 +03:00
parent d7db2cf3aa
commit e1ee0c62a7
12 changed files with 69 additions and 91 deletions

View File

@@ -34,12 +34,12 @@ public:
// move cannot be default,
// since we need to reset head_, tail_, etc to zero in the moved object
circular_q(circular_q &&other) SPDLOG_NOEXCEPT
circular_q(circular_q &&other) noexcept
{
copy_moveable(std::move(other));
}
circular_q &operator=(circular_q &&other) SPDLOG_NOEXCEPT
circular_q &operator=(circular_q &&other) noexcept
{
copy_moveable(std::move(other));
return *this;
@@ -128,7 +128,7 @@ public:
private:
// copy from other&& and reset it to disabled state
void copy_moveable(circular_q &&other) SPDLOG_NOEXCEPT
void copy_moveable(circular_q &&other) noexcept
{
max_items_ = other.max_items_;
head_ = other.head_;