Problème avec les multimaps
Bonjour, j'ai un ennui avec les multimaps.
Il est défini comme suit
Code:
1 2
|
std::multimap<int,std::vector<int> > todraw; |
Et quand j'insert dans la multimap je fais
Code:
1 2 3 4 5 6 7 8
|
std::vector<int> childvalue;
while (child.IsOk()) {
childvalue.push_back(this->GetItemImage(child));
child = this->GetNextChild(child,cookie2);
}
todraw.insert(toint(nomaillage),childvalue); |
Mais il me dit
Citation:
114 no matching function for call to `std::multimap<int, std::vector<int, std::allocator<int> >, std::less<int>, std::allocator<std::pair<const int, std::vector<int, std::allocator<int> > > > >::insert(int, std::vector<int, std::allocator<int> >&)'
Code:
1 2 3 4 5 6 7
| template <class T>
int MyTreeCtrl::toint(T value) {
std::istringstream iss(value);
int integer;
iss >> integer;
return integer;
} |
Merci d'une orientation