Record Detail

Compile Error

In file included from /in/compile/Dlist.h:80:0,
                 from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In instantiation of 'Dlist<T>& Dlist<T>::operator=(const Dlist<T>&) [with T = int]':
/in/compile/dlist_driver.cpp:213:13:   required from here
/in/DlistImpl.h:136:12: error: invalid initialization of non-const reference of type 'Dlist<int>&' from an rvalue of type 'Dlist<int>*'
     return this;
            ^~~~
/in/compile/Makefile:10: recipe for target 'buildDlist' failed
make: *** [buildDlist] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2021-08-01 03:48:23
Judged At
2021-08-01 03:48:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes