Help With Custom Dynamic Arrays
I made my custom dynamic arrays, similar to vectors, and I have one problem with them. When I create a multidimensional array ( dynamic_array< dynamic_array<int> > for example) the compiled program crashes. I think that it is a problem with the destructor, which uses the inline function erase(), which basically sets the reserve and size to 0 and deletes the actual array with delete. I'm sort of new to C++ and it's my first programming language, so I would really appreciate some help and a solution to the problem.
I have attached the source to this post.