Skip to content

Commit 5204655

Browse files
committed
Revert "Add support for Buffer construction via raw arrays"
This reverts commit 74acf65.
1 parent 40ee64c commit 5204655

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

include/cppkafka/buffer.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,6 @@ class CPPKAFKA_API Buffer {
141141
template <typename T, size_t N>
142142
Buffer(T(&&data)[N]) = delete;
143143

144-
/**
145-
* Constructs a buffer from a raw array
146-
*
147-
* \param data The the array to be used as input
148-
*/
149-
template <typename T, size_t N>
150-
Buffer(const T(&data)[N])
151-
: data_(reinterpret_cast<const DataType*>(&data[0])), size_(sizeof(T) * N) {
152-
static_assert(sizeof(T) == sizeof(DataType), "sizeof(T) != sizeof(DataType)");
153-
}
154-
155-
// Don't allow construction from temporary raw arrays
156-
template <typename T, size_t N>
157-
Buffer(const T(&&data)[N]) = delete;
158-
159144
/**
160145
* \brief Construct a buffer from a const string ref
161146
*

0 commit comments

Comments
 (0)