diff --git a/RTCP/Interface/include/Interface/MultiDimArray.h b/RTCP/Interface/include/Interface/MultiDimArray.h index fdd8c4b80d080fc881c66a0c5deaed2a7e3b1db0..2ae51a5735d9d174d79d0b049988e9ab5a420996 100644 --- a/RTCP/Interface/include/Interface/MultiDimArray.h +++ b/RTCP/Interface/include/Interface/MultiDimArray.h @@ -64,6 +64,12 @@ template <typename T, unsigned DIM> class MultiDimArray : public boost::multi_ar private: Allocator &allocator; + // don't allow copy constructors -- they are not yet implemented + // the default boost implementation just copies the pointers + // to the data area, resulting in a double free when deallocating + // both copies. + MultiDimArray( const MultiDimArray<T,DIM> &other ); + static size_t nrElements(const ExtentList &extents) { size_t size = 1;