class abc;
def::ghi ()
{
map def;
string strVar = "ashwin";
def[strVar] = new abc(); --> constructor
of class abc is called
successfully... and when comes the assignment means
the insertion then it is
failing...!
}


Sorry I have not used copy paste of source code while posting...

well instead of map def, I Ihave used

and this map <string, abc*>  xyz; is declared before the usage of it in the
function def::ghi()


Thanks & regards,
Ashwin Mittal.

Reply via email to