Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lukpo970@li15-8:Listan$ g++17 list_test.cc List.cc test_main.o
- list_test.cc: In function ‘void ____C_A_T_C_H____T_E_S_T____23()’:
- list_test.cc:84:10: error: ‘Smart_Step’ was not declared in this scope
- for (Smart_Step it = t.begin(); it != t.end(); ++it) {
- ^~~~~~~~~~
- list_test.cc:84:37: error: ‘it’ was not declared in this scope
- for (Smart_Step it = t.begin(); it != t.end(); ++it) {
- ^~
- list_test.cc:84:37: note: suggested alternative: ‘t’
- for (Smart_Step it = t.begin(); it != t.end(); ++it) {
- ^~
- t
- List.cc: In member function ‘List::Smart_Step& List::Smart_Step::operator++()’:
- List.cc:171:12: error: invalid initialization of reference of type ‘List::Smart_Step&’ from expression of type ‘List::Node*’
- return pos;
- ^~~
- List.cc: At global scope:
- List.cc:174:6: error: prototype for ‘bool List::Smart_Step::operator!=(List::Smart_Step) const’ does not match any in class ‘List::Smart_Step’
- bool List::Smart_Step::operator != (Smart_Step const rhs) const {
- ^~~~
- In file included from List.cc:1:0:
- List.h:40:14: error: candidate is: bool List::Smart_Step::operator!=(int) const
- bool operator != (int const rhs) const;
- ^~~~~~~~
- List.cc:184:1: error: ‘List::Smart_Step::Smart_Step’ names the constructor, not the type
- List::Smart_Step::Smart_Step List::Smart_Step::operator = (Smart_Step const& rhs) { //flytt/copy?
- ^~~~
- List.cc:189:1: error: ‘Smart_Step’ does not name a type
- Smart_Step::Smart_Step List::Smart_Step::operator * (Smart_Step*) {
- ^~~~~~~~~~
- lukpo970@li15-8:Listan$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement