From 520465510efef7704346cf8d140967c4abb057c1 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Mon, 17 Dec 2018 09:18:28 -0800 Subject: [PATCH] Revert "Add support for Buffer construction via raw arrays" This reverts commit 74acf65fa6c6bd4e9fa197d7b3123247f843665e. --- include/cppkafka/buffer.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/cppkafka/buffer.h b/include/cppkafka/buffer.h index fb23407..6a9453f 100644 --- a/include/cppkafka/buffer.h +++ b/include/cppkafka/buffer.h @@ -141,21 +141,6 @@ public: template Buffer(T(&&data)[N]) = delete; - /** - * Constructs a buffer from a raw array - * - * \param data The the array to be used as input - */ - template - Buffer(const T(&data)[N]) - : data_(reinterpret_cast(&data[0])), size_(sizeof(T) * N) { - static_assert(sizeof(T) == sizeof(DataType), "sizeof(T) != sizeof(DataType)"); - } - - // Don't allow construction from temporary raw arrays - template - Buffer(const T(&&data)[N]) = delete; - /** * \brief Construct a buffer from a const string ref *