Skip to content

C4592 warning in Visual Studio 2015 Update 1 #34

Closed
@hs3180

Description

@hs3180

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions