maxence@Sp4rKy-laptop:~/cours/TPC++/Liste$ g++ -Wall testListe.cc Liste.cpp: In member function ‘typename Liste::iterator Liste::begin() const [with T = std::basic_string, std::allocator >]’: testListe.cc:141: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:131: erreur: request for member ‘empty’ in ‘this’, which is of non-class type ‘const Liste, std::allocator > >* const’ Liste.cpp:132: erreur: invalid conversion from ‘const Liste, std::allocator > >* const’ to ‘Liste, std::allocator > >*’ Liste.cpp:132: erreur: initializing argument 1 of ‘Liste::iterator::iterator(Liste*, DataStructure::CyclicNode*) [with T = std::basic_string, std::allocator >]’ testListe.cc:141: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:132: erreur: conversion from ‘Liste, std::allocator > >::iterator*’ to non-scalar type ‘Liste, std::allocator > >::iterator’ requested Liste.cpp:134: erreur: invalid conversion from ‘const Liste, std::allocator > >* const’ to ‘Liste, std::allocator > >*’ Liste.cpp:134: erreur: initializing argument 1 of ‘Liste::iterator::iterator(Liste*, DataStructure::CyclicNode*) [with T = std::basic_string, std::allocator >]’ testListe.cc:141: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:134: erreur: conversion from ‘Liste, std::allocator > >::iterator*’ to non-scalar type ‘Liste, std::allocator > >::iterator’ requested Liste.cpp: In member function ‘typename Liste::iterator Liste::end() const [with T = std::basic_string, std::allocator >]’: testListe.cc:142: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:141: erreur: invalid conversion from ‘const Liste, std::allocator > >* const’ to ‘Liste, std::allocator > >*’ Liste.cpp:141: erreur: initializing argument 1 of ‘Liste::iterator::iterator(Liste*, DataStructure::CyclicNode*) [with T = std::basic_string, std::allocator >]’ testListe.cc:142: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:141: erreur: conversion from ‘Liste, std::allocator > >::iterator*’ to non-scalar type ‘Liste, std::allocator > >::iterator’ requested Liste.cpp: In member function ‘bool Liste::iterator::operator!=(const Liste::iterator&) [with T = std::basic_string, std::allocator >]’: testListe.cc:143: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:166: erreur: passing ‘const Liste, std::allocator > >::iterator’ as ‘this’ argument of ‘double* Liste::iterator::operator->() [with T = std::basic_string, std::allocator >]’ discards qualifiers testListe.cc:143: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:166: erreur: request for member ‘ptr_liste’ in ‘*((const Liste, std::allocator > >::iterator*)i)->Liste::iterator::operator-> [with T = std::basic_string, std::allocator >]()’, which is of non-class type ‘double’ Liste.cpp: In member function ‘double& Liste::iterator::operator*() [with T = std::basic_string, std::allocator >]’: testListe.cc:144: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:153: erreur: invalid initialization of reference of type ‘double&’ from expression of type ‘Liste, std::allocator > >::iterator’ Liste.cpp: In member function ‘double* Liste::iterator::operator->() [with T = std::basic_string, std::allocator >]’: Liste.cpp:166: instantiated from ‘bool Liste::iterator::operator!=(const Liste::iterator&) [with T = std::basic_string, std::allocator >]’ testListe.cc:143: instantiated from ‘void afficherIter(const Liste&) [with T = std::basic_string, std::allocator >]’ testListe.cc:127: instantiated from ‘Liste* testPartie2() [with T = std::basic_string, std::allocator >]’ testListe.cc:54: instantiated from here Liste.cpp:157: erreur: cannot convert ‘Liste, std::allocator > >::iterator* const’ to ‘double*’ in return testListe.cc: At global scope: testListe.cc:73: attention : ‘void testPartie1()’ defined but not used