Skip to content

Removal of deprecated things #1571

@Nerixyz

Description

@Nerixyz

Boost 1.87.0 (specifically ASIO 1.331) breaks https://github.com/zaphoyd/websocketpp by removing io_service and more (yes, I know about Boost.Beast).

It would be great if deprecated things were annotated with [[deprecated]] so one can get compiler warnings before the things are removed. If this gets too noisy, users could define BOOST_ASIO_NO_DEPRECATION_WARNINGS2 or something similar. Explicitly opting out is much better than requiring opt-in. I'm okay with removing stuff in minor releases3, but it's important to actively notify users about it - expecting users to use BOOST_ASIO_NO_DEPRECATED or to actively check the documentation for all their used functions is not enough in my opinion, we have [[deprecated]] for a reason.

Footnotes

  1. This release is not available in this repository, only in the Boost one.

  2. Or even better: BOOST_ASIO_NO_DEPRECATION_WARNINGS_SINCE(1, 33) to disable deprecations introduced after 1.33.

  3. Ideally, the project would use semantic versioning, but I understand that this isn't possible.

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