Skip to content
Snippets Groups Projects
Commit bad18f2a authored by Jan David Mol's avatar Jan David Mol
Browse files

Bug 1299: Generate an error when trying to use a MultiDimArray copy

constructor.
parent c6a13891
No related branches found
No related tags found
Loading
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment