Minor cleanup
This commit is contained in:
@@ -1809,8 +1809,7 @@ template <typename T> class buffer {
|
|||||||
/// Appends data to the end of the buffer.
|
/// Appends data to the end of the buffer.
|
||||||
template <typename U>
|
template <typename U>
|
||||||
FMT_CONSTEXPR20 void append(const U* begin, const U* end) {
|
FMT_CONSTEXPR20 void append(const U* begin, const U* end) {
|
||||||
static_assert(std::is_same<T, U>::value || std::is_same<U, char>::value,
|
static_assert(std::is_same<T, U>() || std::is_same<U, char>(), "");
|
||||||
"U must be T or char to prevent static_cast overflow");
|
|
||||||
while (begin != end) {
|
while (begin != end) {
|
||||||
auto size = size_;
|
auto size = size_;
|
||||||
auto free_cap = capacity_ - size;
|
auto free_cap = capacity_ - size;
|
||||||
|
|||||||
Reference in New Issue
Block a user