Skip to content

Commit 1ef6649

Browse files
ZJUGuoShuaihcho3
andauthored
Add override keyword to make it more explicit. (#683)
Co-authored-by: Philip Hyunsu Cho <[email protected]>
1 parent 3031e4a commit 1ef6649

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/dmlc/threadediter.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ThreadedIter : public DataIter<DType> {
184184
* use the other Next instead
185185
* \return true if there is next record, false if we reach the end
186186
*/
187-
virtual bool Next(void) {
187+
virtual bool Next(void) override {
188188
if (out_data_ != NULL) {
189189
this->Recycle(&out_data_);
190190
}
@@ -199,12 +199,12 @@ class ThreadedIter : public DataIter<DType> {
199199
* NOTE: the call to this function is not threadsafe
200200
* use the other Next instead
201201
*/
202-
virtual const DType &Value(void) const {
202+
virtual const DType &Value(void) const override {
203203
CHECK(out_data_ != NULL) << "Calling Value at beginning or end?";
204204
return *out_data_;
205205
}
206206
/*! \brief set the iterator before first location */
207-
virtual void BeforeFirst(void) {
207+
virtual void BeforeFirst(void) override {
208208
ThrowExceptionIfSet();
209209
std::unique_lock<std::mutex> lock(mutex_);
210210
if (out_data_ != NULL) {

0 commit comments

Comments
 (0)