build: Always build in C++11 mode.
This commit also includes update of websocketpp submodule, as the
previous version has compilation problems on OSX with XCode 6.1
Change-Id: I8c9670d0026d840838d77e610e50679ee5ede7a5
Refs: #1930, #2082
diff --git a/tools/nfdc.cpp b/tools/nfdc.cpp
index 123cdb5..4ef98bf 100644
--- a/tools/nfdc.cpp
+++ b/tools/nfdc.cpp
@@ -70,6 +70,10 @@
namespace nfdc {
+using ndn::bind;
+using ndn::_1;
+using ndn::_2;
+
const ndn::time::milliseconds Nfdc::DEFAULT_EXPIRATION_PERIOD = ndn::time::milliseconds::max();
const uint64_t Nfdc::DEFAULT_COST = 0;
@@ -186,9 +190,11 @@
parameters.setUri(canonicalUri.toString());
m_controller.start<FaceCreateCommand>(parameters,
- bind(&Nfdc::fibAddNextHop, this, _1),
+ [this](const ControlParameters& result) {
+ fibAddNextHop(result);
+ },
bind(&Nfdc::onError, this, _1, _2,
- "Face creation failed"));
+ "Face creation failed"));
}
void
@@ -273,7 +279,9 @@
parameters.setUri(canonicalUri.toString());
m_controller.start<FaceCreateCommand>(parameters,
- bind(&Nfdc::ribRegisterPrefix, this, _1),
+ [this](const ControlParameters& result) {
+ ribRegisterPrefix(result);
+ },
bind(&Nfdc::onError, this, _1, _2,
"Face creation failed"));
}
@@ -389,7 +397,9 @@
parameters.setUri(canonicalUri.toString());
m_controller.start<FaceCreateCommand>(parameters,
- bind(&Nfdc::faceDestroy, this, _1),
+ [this](const ControlParameters& result) {
+ faceDestroy(result);
+ },
bind(&Nfdc::onError, this, _1, _2,
"Face destroy failed"));
}