Add the overrides and you are backin business.
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
+#include "visitor.h"
#include <vespa/vdslib/container/searchresult.h>
-#include <vespa/documentapi/messagebus/messages/visitor.h>
namespace documentapi {
class SearchResultMessage : public VisitorMessage,
public vdslib::SearchResult {
protected:
- // Implements VisitorMessage.
- DocumentReply::UP doCreateReply() const;
+ DocumentReply::UP doCreateReply() const override;
public:
/**
@@ -31,13 +30,9 @@ public:
*/
SearchResultMessage(const vdslib::SearchResult &result);
- // Overrides VisitorMessage.
- uint32_t getApproxSize() const;
-
- // Implements VisitorMessage.
- uint32_t getType() const;
-
- string toString() const { return "searchresultmessage"; }
+ uint32_t getApproxSize() const override;
+ uint32_t getType() const override;
+ string toString() const override { return "searchresultmessage"; }
};
}
