T
tombert
Hi all,
can someone please tell me what's wrong with that code?
I am using gcc 4.7 from MinGW, under 4.6 it seemed to have compiled correctly.
The error is:
: error: no matching function for call to 'std::map<std::basic_string<char>, int>::insert(std::string&, int)'
Example:
class TDir {
typedef std::map<std::string,int> Subdirs;
public:
TDir(){}
~TDir(){}
void getDir(std::string name) {
Subdirs t;
t.insert(name,0);
}
};
can someone please tell me what's wrong with that code?
I am using gcc 4.7 from MinGW, under 4.6 it seemed to have compiled correctly.
The error is:
: error: no matching function for call to 'std::map<std::basic_string<char>, int>::insert(std::string&, int)'
Example:
class TDir {
typedef std::map<std::string,int> Subdirs;
public:
TDir(){}
~TDir(){}
void getDir(std::string name) {
Subdirs t;
t.insert(name,0);
}
};