Skip to content

Commit be6111f

Browse files
authored
Merge pull request #2 from drallensmith/master
Virtual functions with no code and non-void return: =0; silence compiler warning
2 parents 1a922da + c54a1ee commit be6111f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rcsc/common/soccer_agent.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ class SoccerAgent {
138138
void handleMessage() = 0;
139139

140140
virtual
141-
bool handleMessageStep()
142-
{ }
141+
bool handleMessageStep() = 0;
143142

144143
/*!
145144
\brief (virtual) handle offline client log message in offline client mode.
@@ -163,8 +162,7 @@ class SoccerAgent {
163162

164163
virtual
165164
bool handleTimeoutStep( const int timeout_count,
166-
const int waited_msec )
167-
{ }
165+
const int waited_msec ) = 0;
168166

169167
/*!
170168
\brief (pure virtual) handle exit event

0 commit comments

Comments
 (0)