define copy constructor for NAlloc

This commit is contained in:
Alex Fishgait 2023-10-10 13:23:47 +02:00
parent 453c8c24d7
commit 71a7831c2d

View File

@ -283,11 +283,16 @@ struct NAlloc
};
NAlloc() :
alloc(), m_alloc_size(0)
alloc()
{
}
NAlloc(const NAlloc&) = default; // Copy constructor
NAlloc(NAlloc&&) = default; // Move constructor
NAlloc& operator=(const NAlloc& other) = default; // Copy assignment operator
NAlloc& operator=(NAlloc&&) = default; // Move assignment operator
virtual ~NAlloc() = default;
pointer allocate(std::size_t n)