From 39b0b3abbe865e0c50872ba7c54c2388b33ec73f Mon Sep 17 00:00:00 2001 From: Kostiantyn Lazukin Date: Wed, 26 Feb 2025 10:31:13 +0000 Subject: [PATCH] Explicitly call fixed_buffer_traits move constructor from iterator_buffer move constructor to fix deprectaion warning on clang-9 --- include/fmt/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 52a93e7387bc..43f0eeed3906 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1835,7 +1835,7 @@ class fixed_buffer_traits { public: constexpr explicit fixed_buffer_traits(size_t limit) : limit_(limit) {} - FMT_CONSTEXPR20 ~fixed_buffer_traits(){}; + FMT_CONSTEXPR20 ~fixed_buffer_traits() = default; constexpr auto count() const -> size_t { return count_; } FMT_CONSTEXPR auto limit(size_t size) -> size_t { size_t n = limit_ > count_ ? limit_ - count_ : 0; @@ -1912,7 +1912,7 @@ class iterator_buffer : public fixed_buffer_traits, FMT_CONSTEXPR explicit iterator_buffer(T* out, size_t n = buffer_size) : fixed_buffer_traits(n), buffer(grow, out, 0, n), out_(out) {} FMT_CONSTEXPR iterator_buffer(iterator_buffer&& other) noexcept - : fixed_buffer_traits(other), + : fixed_buffer_traits(static_cast(other)), buffer(static_cast(other)), out_(other.out_) { if (this->data() != out_) {