salam 3alekom
i'm working on a smart pointer library for C++ and i was testing it with a linked list class and adding some elments to it then it would free itself but my program instead of printing
dtor4 dtor3 ....
it prints
dtor1 dtor2 .....
this should be printed during the destruction of the list. every thing else is ok. can any1 tell me why this happens and how to fix it. all the files needed is compressed & attached
salam