Segmentation fault on copy std::map<int,int>

Hi,

I have a Config-class, that contains a few variables and a std::map<int,int>.
When I copy the empty map, it gives no problem. If the map has an entry, it gives a segmentation fault on the copy.

I used to insert the items with mymap[key] = value and hoped to solve the issue by replacing it with mymap.insert( par<int,int>( key, value ) ), without luck.

Any ideas on this one?
The problem must be somewhere else.
You should post a minimal example that exhibits the problem.
I finally solved the problem. I thought it was weird something like this could happen so after not finding it for 2 days I posted the questing here. The problem was in the removal of an object ( map.erase( iterator) ) in the wrong map, so the map I got the problem with probably was erased or something :-)
Topic archived. No new replies allowed.