Revert "Add support for Buffer construction via raw arrays"

This reverts commit 74acf65fa6.
This commit is contained in:
Matias Fontanini
2018-12-17 09:18:28 -08:00
parent 40ee64c5c1
commit 520465510e

View File

@@ -141,21 +141,6 @@ public:
template <typename T, size_t N>
Buffer(T(&&data)[N]) = delete;
/**
* Constructs a buffer from a raw array
*
* \param data The the array to be used as input
*/
template <typename T, size_t N>
Buffer(const T(&data)[N])
: data_(reinterpret_cast<const DataType*>(&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 <typename T, size_t N>
Buffer(const T(&&data)[N]) = delete;
/**
* \brief Construct a buffer from a const string ref
*