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.
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 :-)