I faced this question 1~2 times in interview, I did using smart pointer or can say implemented own shared poiter class along with reference count..
I am not sure whether this is right approach or not ?
Could anyone provide usefull links which i can refer or some suggestion would also be great help..?
Thanks..