From 798f6ffbf3fd44b18cf922f9ab3734238b4e8af2 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 15 Jan 2024 10:57:23 +0700 Subject: [PATCH] Mark `iterator_buffer` move constructors as `noexcept`. --- 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 fc0ea7b9505c..14794de16625 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -944,7 +944,7 @@ class iterator_buffer : public Traits, public buffer { public: explicit iterator_buffer(OutputIt out, size_t n = buffer_size) : Traits(n), buffer(grow, data_, 0, buffer_size), out_(out) {} - iterator_buffer(iterator_buffer&& other) + iterator_buffer(iterator_buffer&& other) noexcept : Traits(other), buffer(grow, data_, 0, buffer_size), out_(other.out_) {} @@ -986,7 +986,7 @@ class iterator_buffer : public fixed_buffer_traits, public: explicit iterator_buffer(T* out, size_t n = buffer_size) : fixed_buffer_traits(n), buffer(grow, out, 0, n), out_(out) {} - iterator_buffer(iterator_buffer&& other) + iterator_buffer(iterator_buffer&& other) noexcept : fixed_buffer_traits(other), buffer(static_cast(other)), out_(other.out_) {