Header fixes

This commit is contained in:
accelerated
2018-11-28 20:44:55 -05:00
parent 5aa4bc08a3
commit c7ba478582
5 changed files with 167 additions and 34 deletions

View File

@@ -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;