Check that C++ compiler supports override keyword

If the compiler supports override, define CXX11_OVERRIDE as override,
otherwise define it as empty. Use CXX11_OVERRIDE instead of override.
This commit is contained in:
Tatsuhiro Tsujikawa 2013-07-06 15:54:03 +09:00
parent cce5b3206a
commit 28d5c7408f
15 changed files with 54 additions and 25 deletions

View file

@ -40,7 +40,7 @@ public:
createFindNodeReplyMessage
(const std::shared_ptr<DHTNode>& remoteNode,
std::vector<std::shared_ptr<DHTNode>> closestKNodes,
const std::string& transactionID) override
const std::string& transactionID) CXX11_OVERRIDE
{
auto m = make_unique<DHTFindNodeReplyMessage>
(AF_INET, localNode_, remoteNode, transactionID);