@2kaud

Thank you for answer i changed *i to i->second but now it shows me second issue which you told.
Kindly tell me how i can made this code polymorphic?
I want to check whether stored object is Saving class object or Current class object?