Always build in C++11 mode
refs: #1930
Change-Id: Iedad4a814e5c7e6a5486f2f7e16c45c356131792
diff --git a/src/route/fib.cpp b/src/route/fib.cpp
index 16ed8a8..efc8a45 100644
--- a/src/route/fib.cpp
+++ b/src/route/fib.cpp
@@ -25,6 +25,7 @@
#include <ndn-cxx/common.hpp>
#include "adjacency-list.hpp"
+#include "common.hpp"
#include "conf-parameter.hpp"
#include "nexthop-list.hpp"
#include "face-map.hpp"
@@ -345,6 +346,11 @@
}
}
+typedef void(Fib::*RegisterPrefixCallback)(const ndn::nfd::ControlParameters&,
+ const ndn::nfd::ControlParameters&, uint8_t,
+ const CommandSucceedCallback&,
+ const CommandFailCallback&);
+
void
Fib::registerPrefix(const ndn::Name& namePrefix,
const std::string& faceUri,
@@ -364,9 +370,8 @@
.setExpirationPeriod(timeout)
.setOrigin(128);
createFace(faceUri,
- ndn::bind(&Fib::registerPrefixInNfd, this,_1,
- parameters,
- times, onSuccess, onFailure),
+ ndn::bind(static_cast<RegisterPrefixCallback>(&Fib::registerPrefixInNfd),
+ this, _1, parameters, times, onSuccess, onFailure),
onFailure);
}