guys,
below is exception proof approach of assignment operator shared by scott meyer. Can anybody let me know is it safe to delete the raw pointer.
int *orig =m_p;
m_p=new int (*obj.m_p);
delete orig;
whether this is safe to delete orig depends on whether it points to an object used by other or not.