1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
/usr/include/c++/4.1.3/bits/stl_function.h: In instantiation of «std::less<Ingredient&>":
/usr/include/c++/4.1.3/bits/stl_tree.h:400: instantiated from «std::_Rb_tree<Ingredient&, std::pair<Ingredient&, Quantite&>, std::_Select1st<std::pair<Ingredient&, Quantite&> >, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >::_Rb_tree_impl<std::less<Ingredient&>, false>"
/usr/include/c++/4.1.3/bits/stl_tree.h:437: instantiated from «std::_Rb_tree<Ingredient&, std::pair<Ingredient&, Quantite&>, std::_Select1st<std::pair<Ingredient&, Quantite&> >, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >"
/usr/include/c++/4.1.3/bits/stl_map.h:134: instantiated from «std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >"
recette.cpp:61: instantiated from here
/usr/include/c++/4.1.3/bits/stl_function.h:226: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h: In instantiation of «std::_Rb_tree<Ingredient&, std::pair<Ingredient&, Quantite&>, std::_Select1st<std::pair<Ingredient&, Quantite&> >, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >":
/usr/include/c++/4.1.3/bits/stl_map.h:134: instantiated from «std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >"
recette.cpp:61: instantiated from here
/usr/include/c++/4.1.3/bits/stl_tree.h:488: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:512: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1211: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1301: erreur: forming pointer to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1311: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1332: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1354: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1365: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1383: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1401: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1419: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1440: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_tree.h:1450: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h: In instantiation of «std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >":
recette.cpp:61: instantiated from here
/usr/include/c++/4.1.3/bits/stl_map.h:340: erreur: forming reference to reference type «Quantite&"
/usr/include/c++/4.1.3/bits/stl_map.h:362: erreur: forming reference to reference type «Quantite&"
/usr/include/c++/4.1.3/bits/stl_map.h:371: erreur: forming reference to reference type «Quantite&"
/usr/include/c++/4.1.3/bits/stl_map.h:460: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:533: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:548: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:560: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:575: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:590: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:600: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:610: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:629: erreur: forming reference to reference type «Ingredient&"
/usr/include/c++/4.1.3/bits/stl_map.h:648: erreur: forming reference to reference type «Ingredient&"
recette.cpp:68: erreur: expected constructor, destructor, or type conversion before «&" token
recette.cpp: In member function «void Recette::ajouter_composant(Quantite&, Ingredient&)":
recette.cpp:113: erreur: no match for «operator[]" in «ct[i]"
recette.cpp: In member function «virtual void Recette::afficher(std::ostream&) const":
recette.cpp:130: erreur: no match for «operator<<" in «os << *(std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >*)((const Recette*)this)->Recette::ContComposant.std::vector<_Tp, _Alloc>::operator[] [with _Tp = std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >*, _Alloc = std::allocator<std::map<Ingredient&, Quantite&, std::less<Ingredient&>, std::allocator<std::pair<Ingredient&, Quantite&> > >*>](((unsigned int)i))"
/usr/include/c++/4.1.3/bits/ostream.tcc:67: note: candidats sont: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>& (*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:78: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ios<_CharT, _Traits>& (*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:90: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:241: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:264: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:102: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:125: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:157: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:183: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:215: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:288: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:311: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:361: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:335: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:384: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:407: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/include/c++/4.1.3/bits/ostream.tcc:430: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_streambuf<_CharT, _Traits>*) [with _CharT = char, _Traits = std::char_traits<char>]
recette.h:112: note: std::ostream& operator<<(std::ostream&, const Recette&)
ingredient.h:37: note: std::ostream& operator<<(std::ostream&, const Ingredient&)
quantite.h:16: note: std::ostream& operator<<(std::ostream&, const Quantite&)
/usr/include/c++/4.1.3/bits/stl_pair.h: At global scope:
/usr/include/c++/4.1.3/bits/stl_pair.h: In instantiation of «std::pair<Ingredient&, Quantite&>":
/usr/include/c++/4.1.3/bits/stl_tree.h:135: instantiated from «std::_Rb_tree_node<std::pair<Ingredient&, Quantite&> >"
/usr/include/c++/4.1.3/bits/stl_tree.h:1264: instantiated from «void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase(std::_Rb_tree_node<_Val>*) [with _Key = Ingredient&, _Val = std::pair<Ingredient&, Quantite&>, _KeyOfValue = std::_Select1st<std::pair<Ingredient&, Quantite&> >, _Compare = std::less<Ingredient&>, _Alloc = std::allocator<std::pair<Ingredient&, Quantite&> >]"
/usr/include/c++/4.1.3/bits/stl_tree.h:578: instantiated from «std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key = Ingredient&, _Val = std::pair<Ingredient&, Quantite&>, _KeyOfValue = std::_Select1st<std::pair<Ingredient&, Quantite&> >, _Compare = std::less<Ingredient&>, _Alloc = std::allocator<std::pair<Ingredient&, Quantite&> >]"
/usr/include/c++/4.1.3/bits/stl_map.h:93: instantiated from here
/usr/include/c++/4.1.3/bits/stl_pair.h:84: erreur: forming reference to reference type «Quantite&"
make: *** [recette.o] Erreur 1 |
Partager