1 2 3 4 5 6 7 8
| Echiquier.cxx: In member function void Echiquier::ajouter(Piece*):
Echiquier.cxx:6:19: error: no matching function for call to std::vector<Piece*>::insert(Piece&)
/usr/include/c++/4.5/bits/vector.tcc:106:5: note: candidates are: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, const value_type&) [with _Tp = Piece*, _Alloc = std::allocator<Piece*>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Piece**, std::vector<Piece*> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = Piece**, value_type = Piece*]
/usr/include/c++/4.5/bits/stl_vector.h:858:7: note: void std::vector<_Tp, _Alloc>::insert(std::vector<_Tp, _Alloc>::iterator, std::vector::size_type, const value_type&) [with _Tp = Piece*, _Alloc = std::allocator<Piece*>, std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<Piece**, std::vector<Piece*> >, typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer = Piece**, std::vector::size_type = unsigned int, value_type = Piece*]
Echiquier.cxx: In member function void Echiquier::afficher():
Echiquier.cxx:16:44: error: request for member getPosition in ((Echiquier*)this)->Echiquier::pieces.std::vector<_Tp, _Alloc>::at [with _Tp = Piece*, _Alloc = std::allocator<Piece*>, std::vector<_Tp, _Alloc>::reference = Piece*&, std::vector::size_type = unsigned int](((unsigned int)k)), which is of non-class type Piece*
Echiquier.cxx:16:84: error: request for member getPosition in ((Echiquier*)this)->Echiquier::pieces.std::vector<_Tp, _Alloc>::at [with _Tp = Piece*, _Alloc = std::allocator<Piece*>, std::vector<_Tp, _Alloc>::reference = Piece*&, std::vector::size_type = unsigned int](((unsigned int)k)), which is of non-class type Piece*
Echiquier.cxx:18:30: error: request for member toDebug in ((Echiquier*)this)->Echiquier::pieces.std::vector<_Tp, _Alloc>::at [with _Tp = Piece*, _Alloc = std::allocator<Piece*>, std::vector<_Tp, _Alloc>::reference = Piece*&, std::vector::size_type = unsigned int](((unsigned int)k)), which is of non-class type Piece* |
Partager