I do think that it works correctly as it works, except memory issues due to a lot of using of dynamic allocation. But just in last case I cannot settle it? So it is funny that there is no memory leak in another cases when I use new operator and pointers as I almost do not use delete operator as even going out of scope do not release memory as in case of stack allocation.
In general I understand that the using of pointers especially in objects cases is for using heap memory (despite error-prone), that allow far more rich memory resourses then stack case.
If we use pointers that are the same in case of 32-bit Windows Xp -- 4 bytes (as it improbably is relevant to the real object size). Why to use the pointer if it is just the reference, name (e-adress) of object but its real one take the whole memory size? So the real difference is in the type and possibilities of volume of memory allocation? The pointer itself do not free the system to put the whole object with it nessesary memory size.
Bookmarks