Commit 95d560e
authored
Merge pull request #3 from mhauskn/revert-2-master
Revert "Virtual functions with no code and non-void return: =0; silence compiler warning"
Due to breakage of the main build process:
/home/matthew/workspace/HFO/src/main_coach.cpp:43:13: error: cannot declare variable ‘{anonymous}::agent’ to be of abstract type ‘SampleCoach’
SampleCoach agent;
^
In file included from /home/matthew/workspace/HFO/src/main_coach.cpp:31:0:
/home/matthew/workspace/HFO/src/sample_coach.h:41:7: note: because the following virtual functions are pure within ‘SampleCoach’:
class SampleCoach
^
In file included from /home/matthew/workspace/HFO/build/librcsc-prefix/src/librcsc/rcsc/coach/coach_agent.h:38:0,
from /home/matthew/workspace/HFO/src/sample_coach.h:30,
from /home/matthew/workspace/HFO/src/main_coach.cpp:31:
/home/matthew/workspace/HFO/build/librcsc-prefix/src/librcsc/rcsc/common/soccer_agent.h:141:10: note: virtual bool rcsc::SoccerAgent::handleMessageStep()
bool handleMessageStep() = 0;
^
/home/matthew/workspace/HFO/build/librcsc-prefix/src/librcsc/rcsc/common/soccer_agent.h:164:10: note: virtual bool rcsc::SoccerAgent::handleTimeoutStep(int, int)
bool handleTimeoutStep( const int timeout_count,
^
CMakeFiles/sample_coach.dir/build.make:62: recipe for target 'CMakeFiles/sample_coach.dir/src/main_coach.cpp.o' failed
make[2]: *** [CMakeFiles/sample_coach.dir/src/main_coach.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/sample_coach.dir/all' failed
make[1]: *** [CMakeFiles/sample_coach.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 21 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments