diff --git a/include/cppkafka/buffer.h b/include/cppkafka/buffer.h index 361e130..504d083 100644 --- a/include/cppkafka/buffer.h +++ b/include/cppkafka/buffer.h @@ -82,6 +82,12 @@ public: } } + /** + * Constructs a buffer from two iterators in the range [first,last) + * + * \param first An iterator to the start of data + * \param last An iterator to the end of data (not included) + */ template Buffer(const Iter first, Iter last) : Buffer(&*first, std::distance(first, last)) {