Skip to content

Boost get_io_service deprecated #13

@nandlab

Description

@nandlab

Hello Dimitry,
thanks for sharing this C++ firmata library!
Some boost functions you used deprecated and it did not compile. I forked this repository to https://github.com/NANDLAB/firmata and fixed it. I can create a pull request if you want.

I changed

port_.get_io_service().reset();
port_.get_io_service().run_one();

to

asio::io_context& ioc = static_cast<asio::io_service&>(port_.get_executor().context());
ioc.restart();
ioc.run_one();

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