Visitar URL original
‘class boost::asio::ip::basic_resolver<boost::asio::ip::udp> has no member named ‘get_io_service’ · Issue #905 · cpp-netlib/cpp-netlib · GitHub
Skip to content

‘class boost::asio::ip::basic_resolver<boost::asio::ip::udp> has no member named ‘get_io_service’ #905

Description

@hashemjan

I've downloaded cpp-netlib. I'm using libboost version 1.83.0. When I run make, I get the following
~/src/cpp-netlib/libs/network/test/http/client_get_test.cpp:82:3: required from ‘void HTTPClientTest_PropagatesResolutionErrorsTest_Test<gtest_TypeParam_>::TestBody() [with gtest_TypeParam_ = boost::network::http::basic_client<boost::network::http::tags::http_default_8bit_tcp_resolve, 1, 1>]’

~/src/cpp-netlib/libs/network/test/http/client_get_test.cpp:76:1: required from here

~/src/cpp-netlib/boost/network/protocol/http/client/connection/async_base.hpp:59:18: error: ‘boost::network::http::impl::async_connection_base<boost::network::http::tags::http_default_8bit_tcp_resolve, 1, 1>::resolver_type’ {aka ‘class boost::asio::ip::basic_resolverboost::asio::ip::tcp’} has no member named ‘get_io_service’

59 | resolver.get_io_service(), https, always_verify_peer,
| ~~~~~~~~~^~~~~~~~~~~~~~

~/src/cpp-netlib/boost/network/protocol/http/client/connection/async_base.hpp: In instantiation of .....

Is this a known issue? How can I resolve this?

Activity

  1. gaohoward commented on Sep 18, 2024

    @gaohoward

    I saw the same issue. the get_io_service() has been removed from later boost lib. Look in to the CMakefile it seems to require boost 1.58.0 .

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

Metadata

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