Okay, so I spent some time away from the computer to let my mind refresh. When I came back, I realized that in the code

1: string str = "string";
2: int num = 28;
3: multimap<string,int> mm;
4: mm.insert(pair<string,int>(str, num));

str becomes a bad-pointer not when when it's inserted inside of mm, but when it's created on line 1.

Why is this? I'm declaring the string perfectly fine, and I'm #including <string>.

Any ideas would be mich appreciated.

Thanks,

~Ben S.