mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
Minor cleanup
This commit is contained in:
parent
d38881410a
commit
c8a6fd9177
@ -1809,8 +1809,7 @@ template <typename T> class buffer {
|
||||
/// Appends data to the end of the buffer.
|
||||
template <typename U>
|
||||
FMT_CONSTEXPR20 void append(const U* begin, const U* end) {
|
||||
static_assert(std::is_same<T, U>::value || std::is_same<U, char>::value,
|
||||
"U must be T or char to prevent static_cast overflow");
|
||||
static_assert(std::is_same<T, U>() || std::is_same<U, char>(), "");
|
||||
while (begin != end) {
|
||||
auto size = size_;
|
||||
auto free_cap = capacity_ - size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user