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/tests/daemon/face/udp.cpp b/tests/daemon/face/udp.cpp
index 503ec74..87ee8f0 100644
--- a/tests/daemon/face/udp.cpp
+++ b/tests/daemon/face/udp.cpp
@@ -379,7 +379,7 @@
void
channel_onConnectFailedOk(const std::string& reason)
{
- //it's ok, it was supposed to fail
+ // it's ok, it was supposed to fail
limitedIo.afterOp();
}
@@ -389,6 +389,16 @@
BOOST_CHECK_EQUAL(faces.size(), shouldBe);
}
+ void
+ connect(const shared_ptr<UdpChannel>& channel,
+ const std::string& remoteHost,
+ const std::string& remotePort)
+ {
+ channel->connect(remoteHost, remotePort,
+ bind(&EndToEndFixture::channel_onFaceCreated, this, _1),
+ bind(&EndToEndFixture::channel_onConnectFailed, this, _1));
+ }
+
public:
LimitedIo limitedIo;
@@ -640,12 +650,7 @@
BOOST_CHECK_NE(channel3, channel4);
scheduler::schedule(time::milliseconds(500),
- bind(&UdpChannel::connect, channel4, "127.0.0.1", "20070",
- // does not work without static_cast
- static_cast<UdpChannel::FaceCreatedCallback>(
- bind(&EndToEndFixture::channel_onFaceCreated, this, _1)),
- static_cast<UdpChannel::ConnectFailedCallback>(
- bind(&EndToEndFixture::channel_onConnectFailed, this, _1))));
+ bind(&EndToEndFixture::connect, this, channel4, "127.0.0.1", "20070"));
scheduler::schedule(time::milliseconds(400), bind(&EndToEndFixture::checkFaceList, this, 2));