B
boltar2003
Hi
I'm probably making some idiot mistake but can someone tell me why the
following fails to compile with a no matching function call error under
gcc:
map<int,vector<pair<int,int> > > m;
m[123] = vector<pair<int,int> >(pair<int,int>(2,3));
However a simple integer vector in the map compiles just fine:
map<int,vector<int> > m2;
m2[123] = vector<int>(2);
I can easily work around the issue but I'd like to know what I'm doing
wrong anyway. Thanks for any help
B2003
I'm probably making some idiot mistake but can someone tell me why the
following fails to compile with a no matching function call error under
gcc:
map<int,vector<pair<int,int> > > m;
m[123] = vector<pair<int,int> >(pair<int,int>(2,3));
However a simple integer vector in the map compiles just fine:
map<int,vector<int> > m2;
m2[123] = vector<int>(2);
I can easily work around the issue but I'd like to know what I'm doing
wrong anyway. Thanks for any help
B2003