Bonjour, j'ai un ennui avec les multimaps.
Il est défini comme suit
Et quand j'insert dans la multimap je fais
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 std::multimap<int,std::vector<int> > todraw;
Mais il me dit
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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);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> >&)'
Merci d'une orientation
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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; }
Partager