alligator421 | indigestion ... ben indigeste quoi
Code :
- g++ -Wall -ansi -I/usr/include -c main.cpp
- /usr/include/g++/bits/stl_algo.h: In function `void
- std::sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with
- _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int,
- ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned
- int, ma_classe*>*>, _Compare = compare_moi_tout_ca]':
- main.cpp:436: instantiated from here
- /usr/include/g++/bits/stl_algo.h:2209: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& - std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>&' operator
- /usr/include/g++/bits/stl_algo.h: In function `void
- std::__final_insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare)
- [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned
- int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const
- unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]':
- /usr/include/g++/bits/stl_algo.h:2210: instantiated from `void std::sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- main.cpp:436: instantiated from here
- /usr/include/g++/bits/stl_algo.h:2074: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& - std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>&' operator
- /usr/include/g++/bits/stl_algo.h:2075: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& + std::<anonymous enum>' operator
- /usr/include/g++/bits/stl_algo.h:2076: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& + std::<anonymous enum>' operator
- /usr/include/g++/bits/stl_algo.h: In function `void
- std::__insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with
- _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int,
- ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned
- int, ma_classe*>*>, _Compare = compare_moi_tout_ca]':
- /usr/include/g++/bits/stl_algo.h:2079: instantiated from `void std::__final_insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- /usr/include/g++/bits/stl_algo.h:2210: instantiated from `void std::sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- main.cpp:436: instantiated from here
- /usr/include/g++/bits/stl_algo.h:2004: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& + int' operator
- /usr/include/g++/bits/stl_algo.h:2079: instantiated from `void std::__final_insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- /usr/include/g++/bits/stl_algo.h:2210: instantiated from `void std::sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- main.cpp:436: instantiated from here
- /usr/include/g++/bits/stl_algo.h:2007: no match for call to `(compare_moi_tout_ca) (
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>&)'
- main.cpp:32: candidates are: bool compare_moi_tout_ca::operator()(ma_classe*, ma_classe*) const
- /usr/include/g++/bits/stl_algo.h:2008: no match for `
- std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>,
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>*>& + int' operator
- /usr/include/g++/bits/stl_algo.h: In member function `std::pair<const unsigned
- int, ma_classe*>& std::pair<const unsigned int, ma_classe*>::operator=(const
- std::pair<const unsigned int, ma_classe*>&)':
- /usr/include/g++/bits/stl_algo.h:2009: non-static const member `const unsigned
- int std::pair<const unsigned int, ma_classe*>::first', can't use default
- assignment operator
- /usr/include/g++/bits/stl_algo.h: In function `void
- std::__unguarded_linear_insert(_RandomAccessIter, _Tp, _Compare) [with
- _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int,
- ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned
- int, ma_classe*>*>, _Tp = std::pair<const unsigned int, ma_classe*>, _Compare =
- compare_moi_tout_ca]':
- /usr/include/g++/bits/stl_algo.h:2012: instantiated from `void std::__insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- /usr/include/g++/bits/stl_algo.h:2079: instantiated from `void std::__final_insertion_sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- /usr/include/g++/bits/stl_algo.h:2210: instantiated from `void std::sort(_RandomAccessIter, _RandomAccessIter, _Compare) [with _RandomAccessIter = std::_Rb_tree_iterator<std::pair<const unsigned int, ma_classe*>, std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int, ma_classe*>*>, _Compare = compare_moi_tout_ca]'
- main.cpp:436: instantiated from here
- /usr/include/g++/bits/stl_algo.h:1961: no match for call to `(compare_moi_tout_ca) (
- std::pair<const unsigned int, ma_classe*>&, std::pair<const unsigned int,
- ma_classe*>&)'
- main.cpp:32: candidates are: bool compare_moi_tout_ca::operator()(ma_classe*, ma_classe*) const
- make: *** [main.o] Error 1
|
bon je dois conclure que il n'y a pas moyen d'ordonner une map de la maniere dont on veut ?
ca me parait bizarre. |