1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| *** Exécution arrêtée : exception de type Exception :
Compilation échouée
====== Sortie de g++ (1): ======
In file included from /tmp/tmprck_fu/test.cc:153:0:
/tmp/tmprck_fu/student.cc: In member function double h8f38ea9190dd6f1c464fbf7a78f3979b::Navire::distance(const h8f38ea9190dd6f1c464fbf7a78f3979b::Navire&, const h8f38ea9190dd6f1c464fbf7a78f3979b::Navire&):
/tmp/tmprck_fu/student.cc:227:10: error: ::distance has not been declared
return ::distance(n1, n2);
^
compilation terminated due to -Wfatal-errors.
====== Sortie de clang++ (1): ======
In file included from /tmp/tmprck_fu/test.cc:153:
/tmp/tmprck_fu/student.cc:227:12: fatal error: no member named 'distance' in the global namespace
return ::distance(n1, n2);
~~^
1 error generated. |