diff --git a/src/sockets/plain.hpp b/src/sockets/plain.hpp index 201d86c249..48aa910799 100644 --- a/src/sockets/plain.hpp +++ b/src/sockets/plain.hpp @@ -35,6 +35,12 @@ #include +#ifdef _MSC_VER +// Disable "warning C4355: 'this' : used in base member initializer list". +# pragma warning(push) +# pragma warning(disable:4355) +#endif + namespace websocketpp { namespace socket { @@ -116,4 +122,8 @@ private: } // namespace socket } // namespace websocketpp +#ifdef _MSC_VER +# pragma warning(pop) +#endif + #endif // WEBSOCKETPP_SOCKET_PLAIN_HPP