mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-10-31 18:47:48 +00:00
Header fixes
This commit is contained in:
@@ -93,7 +93,9 @@ public:
|
||||
static_assert(sizeof(T) == sizeof(DataType), "sizeof(T) != sizeof(DataType)");
|
||||
}
|
||||
|
||||
// Don't allow construction from temporary vectors
|
||||
/**
|
||||
* Don't allow construction from temporary vectors
|
||||
*/
|
||||
template <typename T>
|
||||
Buffer(std::vector<T>&& data) = delete;
|
||||
|
||||
@@ -108,7 +110,9 @@ public:
|
||||
static_assert(sizeof(T) == sizeof(DataType), "sizeof(T) != sizeof(DataType)");
|
||||
}
|
||||
|
||||
// Don't allow construction from temporary arrays
|
||||
/**
|
||||
* Don't allow construction from temporary arrays
|
||||
*/
|
||||
template <typename T, size_t N>
|
||||
Buffer(std::array<T, N>&& data) = delete;
|
||||
|
||||
@@ -120,9 +124,11 @@ public:
|
||||
*/
|
||||
Buffer(const std::string& data);
|
||||
|
||||
// Don't allow construction from temporary strings
|
||||
/**
|
||||
* Don't allow construction from temporary strings
|
||||
*/
|
||||
Buffer(std::string&&) = delete;
|
||||
|
||||
|
||||
Buffer(const Buffer&) = delete;
|
||||
Buffer(Buffer&&) = default;
|
||||
Buffer& operator=(const Buffer&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user