How to create a map copy for a map already exists

I have a private map for my class:
map<unsigned int,int> map__rows;

During some process I make a copy of this map into another map,later I want to delete the previous map and create it again using the copy.
I dont know whats happen but If I write :
map<unsigned int,int> map__rows(map_copy) ;
I think I'm creating a local map_rows inside the function of my class.

So, how can I re-create my private map__rows ?

Any idea ?


Have you tried map_rows = map_copy; ?
thanks.... it is true....
Topic archived. No new replies allowed.