Hi, first thing I should say is that my university course hasn't extended beyond pointers, references, and dynamic memory allocation (for C, course hasnt had any C++ exclusive content until next level). I have been trying to teach myself C++ since I enjoy learning about it, and lately have been trying to familiarize myself with templated classes. Below is a small class I have which should function like a single dimensional array.
It all works as expected/intended, until the program tries to exit. It executes perfectly, however, when it attempts to exit, the program crashes. I have tried many different things but obviously nothing has worked. Can anyone share some light on this? Compiler is mingw/g++