Skip to content

Commit 43a6f73

Browse files
committed
At GCC 4.7, C++11 rules for noexcept specification of implicit destructors (and default specification on explicit destructors without exception specifications) aren't perfectly implemented
1 parent 7ee0176 commit 43a6f73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Release/src/websockets/client/ws_client_wspp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class wspp_callback_client : public websocket_client_callback_impl, public std::
127127
#endif
128128
{}
129129

130-
~wspp_callback_client()
130+
~wspp_callback_client() CPPREST_NOEXCEPT
131131
{
132132
_ASSERTE(m_state < DESTROYED);
133133
std::unique_lock<std::mutex> lock(m_wspp_client_lock);
@@ -730,6 +730,7 @@ class wspp_callback_client : public websocket_client_callback_impl, public std::
730730
};
731731
struct websocketpp_client : websocketpp_client_base
732732
{
733+
~websocketpp_client() CPPREST_NOEXCEPT {}
733734
websocketpp::client<websocketpp::config::asio_client> & non_tls_client() override
734735
{
735736
return m_client;
@@ -739,6 +740,7 @@ class wspp_callback_client : public websocket_client_callback_impl, public std::
739740
};
740741
struct websocketpp_tls_client : websocketpp_client_base
741742
{
743+
~websocketpp_tls_client() CPPREST_NOEXCEPT {}
742744
websocketpp::client<websocketpp::config::asio_tls_client> & tls_client() override
743745
{
744746
return m_client;

0 commit comments

Comments
 (0)