Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

map error

Status
Not open for further replies.

Samprayoga

Programmer
Joined
Apr 10, 2002
Messages
7
Location
FR
I have the following error for this code:
_configDic.insert(make_pair (buffer1,-1));
(_configDic type is map<string,int>)

Error Could not find a match for std::map<std::basic_string<...and so on...

Is anybody can help me?

Thanks
 
Since you included only a small snippet of code, here's a suggestion:

When you use the string class, make sure and include <string> and not <string.h>

#include <string>
using namespace std;

hope this helps. Failure is not falling down, it's staying down.
 
try this:
_configDic[buffer1]= -1;
It is also a function to add the pair to map list
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top