Skip to content

Compile failure with boost >= 1.87 #320

@nh2

Description

@nh2

On Version 18.73:

Trying to compile with boost >= 1.87 does not work because boost 1.87 removed/renamed `io_service:

Src/Socket.h:56:29: error: 'io_service' in namespace 'boost::asio' does not name a type; did you mean 'use_service'?
   56 |         static boost::asio::io_service io_service;
      |                             ^~~~~~~~~~

How to fix (probably)

Example how to handle this update from PCL, switching to boost::asio::io_context (seems to be a small code change in general):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions