Skip to content

Commit

Permalink
Fix cppcheck warning, remove unneeded overload
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
  • Loading branch information
polter-rnd committed Nov 2, 2024
1 parent c6af969 commit c2cea44
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/util/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Buffer {
/**
* @brief Appends data to the end of the buffer.
*
* @tparam U Input data type.
* @param begin Begin iterator of the source data.
* @param end End iterator of the source data.
*/
Expand Down Expand Up @@ -411,19 +412,6 @@ class MemoryBuffer : public Buffer<T> {
Buffer<T>::append(range.data(), range.data() + range.size());
}

/**
* @brief Appends data to the end of the buffer.
*
* @tparam U Input data type.
* @param begin Begin iterator of the source data.
* @param end End iterator of the source data.
*/
template<typename U>
void append(const U* begin, const U* end)
{
Buffer<T>::append(begin, end);
}

protected:
#if defined(ENABLE_FMTLIB) && FMT_VERSION < 110000
/**
Expand Down

0 comments on commit c2cea44

Please sign in to comment.