From 8d050767e13d238a8c78f6d6571c5f607b78fd80 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Fri, 1 Feb 2013 08:59:35 -0600 Subject: [PATCH] fixes warning --- websocketpp/impl/connection_impl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocketpp/impl/connection_impl.hpp b/websocketpp/impl/connection_impl.hpp index e30720516f..5e2378e849 100644 --- a/websocketpp/impl/connection_impl.hpp +++ b/websocketpp/impl/connection_impl.hpp @@ -971,7 +971,10 @@ void connection::handle_send_http_response( // the expected response and the connection can be closed. } else { // this was a websocket connection that ended in an error - m_elog.write(log::elevel::rerror,"Handshake ended with HTTP error: "+m_response.get_status_code()); + std::stringstream s; + s << "Handshake ended with HTTP error: " + << m_response.get_status_code(); + m_elog.write(log::elevel::rerror,s.str()); } this->terminate(); return;