Curiosity question about classes...
This really is not a problem just curious as to why it is this way.
if you make a class (A) and have it have pointer to class (B),(C),and(D).
If you use new on B,C,and D. It allocates the memory (obviously).
Why (IF) these are smart_ptrs (boost::shared_ptr) that they are deleted in the opposite order.
I made a little program testing this, and no matter what order I allocated them they were always freed in the exact opposite order.
I apologize for any redundancy in my question not much sleep lol. Well thanks if anyone understands what I am saying.