Skip to content

Build error with boost 1.63 (error converting from boost::system::error_code to td::error_code) #813

Closed
@ashishsb95

Description

Bug
Casablanca/Release/libs/websocketpp/websocketpp/transport/asio/security/tls.hpp:315:39: error: could not convert ‘boost::asio::ssl::error::make_error_code((boost::asio::ssl::error::stream_errors)1)’ from ‘boost::system::error_code’ to ‘std::error_code’
return make_error_code(boost::asio::ssl::error::stream_truncated);

system specifications
os = fedora 26
c++ compiler = g++ (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2)
ssl = openssl 1:1.1.0
zlib 1.2.11-2

Fix
if (ERR_GET_REASON(ec.value()) == boost::asio::ssl::error::stream_truncated) { return make_error_code(static_cast<std::errc>(boost::asio::ssl::error::stream_truncated));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions