Problem with exercise Thinking in C++.

Hello.

I have problem with one exercise from Thinking in C++. Exactly chapter 7, exercise 11.
There is command to create function bool moved() which return true if the pointer has moved. Maybe somebody did it and know how to do it.

I define for the moment only this:

bool moved(){
if(mem == 0) return false;
else return true;
} // Where mem is begining adress

My comparing is tottaly nonsense but for the moment I don't know how I should check mem.

Thanks a lot for help.

BR

This is talking about the Mem class that is in the first part of that chapter; specifically, the ensureMinSize() function.
Topic archived. No new replies allowed.