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/tcp.cpp b/tests/daemon/face/tcp.cpp
index 7b0a77d..a87c5dc 100644
--- a/tests/daemon/face/tcp.cpp
+++ b/tests/daemon/face/tcp.cpp
@@ -234,6 +234,16 @@
BOOST_CHECK_EQUAL(faces.size(), shouldBe);
}
+ void
+ connect(const shared_ptr<TcpChannel>& 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;
@@ -431,13 +441,7 @@
BOOST_CHECK_NE(channel3, channel4);
scheduler::schedule(time::seconds(1),
- bind(&TcpChannel::connect, channel4, "127.0.0.1", "20070",
- // does not work without static_cast
- static_cast<TcpChannel::FaceCreatedCallback>(
- bind(&EndToEndFixture::channel_onFaceCreated, this, _1)),
- static_cast<TcpChannel::ConnectFailedCallback>(
- bind(&EndToEndFixture::channel_onConnectFailed, this, _1)),
- time::seconds(4)));
+ bind(&EndToEndFixture::connect, this, channel4, "127.0.0.1", "20070"));
scheduler::schedule(time::milliseconds(500),
bind(&EndToEndFixture::checkFaceList, this, 4));