Skip to content

warning: use of the 'deprecated' attribute is a C++14 extension #1683

@ashtum

Description

@ashtum

When compiling with Clang in C++11 mode using -Wpedantic, the following warning appears:

In file included from /workspace/boost/libs/asio/include/boost/asio.hpp:21:
In file included from /workspace/boost/libs/asio/include/boost/asio/any_completion_handler.hpp:20:
In file included from /workspace/boost/libs/asio/include/boost/asio/any_io_executor.hpp:23:
In file included from /workspace/boost/libs/asio/include/boost/asio/execution_context.hpp:584:
/workspace/boost/libs/asio/include/boost/asio/impl/execution_context.hpp:118:1: warning: use of the 'deprecated' attribute is a C++14 extension [-Wc++14-attribute-extensions]
  118 | BOOST_ASIO_DEPRECATED_MSG("Use make_service()")
      | ^
/workspace/boost/libs/asio/include/boost/asio/detail/config.hpp:1373:46: note: expanded from macro 'BOOST_ASIO_DEPRECATED_MSG'
 1373 | #    define BOOST_ASIO_DEPRECATED_MSG(msg) [[deprecated(msg)]]

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