The following code compiles fine in Visual C++ 2003 but not in 2005
<br>
<br>
using namespace std;<br>
<br>
string name, value; <br>
name = "foo"; <br>
value = "bar"; <br>
map<string, string> m; <br>
m.insert(pair <string, string> (name, value));<br>
<br>
<br>
Did something change or am I doing something wrong
Thank you.

Visual C++ 2005 map<string, string> problem
Michael Entin SSIS
This code compiles fine in VC2003 and VC2005. Did you forget the #includes
It's generally much easier to help if you report what errors you are getting...
#include "stdafx.h"
#include
<map>#include
<string>using
namespace std;int
_tmain(int argc, _TCHAR* argv[]){
string name, value;
name =
"foo";value =
"bar";map<string, string> m;
m.insert(pair <string, string> (name, value));
return 0;}