diff --git a/include/fmt/base.h b/include/fmt/base.h index 2c186d47..795dacf6 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1808,6 +1808,7 @@ template class buffer { /// Appends data to the end of the buffer. template FMT_CONSTEXPR20 void append(const U* begin, const U* end) { + static_assert(std::is_same::value || std::is_same::value); while (begin != end) { auto size = size_; auto free_cap = capacity_ - size;