Closed
Description
There is a warning that stops compiling websocket++ in line 164, connection.hpp
static std::vector<int> const versions_supported = {0,7,8,13};
Severity | Code | Description | Project | File | Line | Suppression State |
---|---|---|---|---|---|---|
Warning | C4592 | 'websocketpp::versions_supported': symbol will be dynamically initialized (implementation limitation) | cpprestsdk140 | \path\to\cpprestsdk\Release\libs\websocketpp\websocketpp\connection.hpp | 164 | |
Error | C2220 | warning treated as error - no 'object' file generated | cpprestsdk140 | \path\to\cpprestsdk\Release\libs\websocketpp\websocketpp\connection.hpp | 164 |
Seems that it is a bug in vs2015-1:
http://stackoverflow.com/questions/34013930/error-c4592-symbol-will-be-dynamically-initialized-vs2015-1-static-const-std