#include <cstddef>
#include <cstdint>
+#include "assert.h"
+
namespace caspar {
template<typename T>
-class array sealed
+class array final
{
array(const array<std::uint8_t>&);
array& operator=(const array<std::uint8_t>&);
};
template<typename T>
-class array<const T> sealed
+class array<const T> final
{
public:
// Static Members
// Constructors
+ array() = default; // Needed by std::future
template<typename T>
explicit array(const std::uint8_t* ptr, std::size_t size, bool cacheable, T&& storage)
, storage_(new boost::any(std::forward<T>(storage)))
{
}
-
+
+ explicit array(const std::uint8_t* ptr, std::size_t size, bool cacheable)
+ : ptr_(ptr)
+ , size_(size)
+ , cacheable_(cacheable)
+ , storage_(new boost::any)
+ {
+ }
+
array(const array& other)
: ptr_(other.ptr_)
, size_(other.size_)