First off let me say, I'm being forced to compile in Unix here but here goes:
I'm currently testing out some classes i've made, one class (StoreList) which creates a list of another class (Store, the class that the list consists of has dynamic memory allocated in it). Now when I run the driver and get to the part where I do the 'add' function to add the Store to the StoreList, it gives me a compilation error saying,
and it exits.
Now this error only occurs when I attempt to pass the Store to the add function by reference, when I do it by value it compiles fine, but then it core dumps on me even before it gets to the first line of code in the function add.
Is there something I missed? Do I need to put something special because the dynamic memory is in store? I assumed I would need to pass by reference because of this, but it gives the error....thanks for the help