Ashwin Mittal a écrit :
> > 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()
>
>
So I don't see any reason in your code you post why it can not work