Skip to content

remove unused boost.bind includes causing deprecation message - #348

Open
m-fila wants to merge 1 commit into
boostorg:developfrom
m-fila:unused_includes
Open

remove unused boost.bind includes causing deprecation message#348
m-fila wants to merge 1 commit into
boostorg:developfrom
m-fila:unused_includes

Conversation

@m-fila

@m-fila m-fila commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Compilation of examples and tests currently produces messages like this:

In file included from ../../../boost/bind.hpp:30,
                 from asio/autoecho.cpp:18:
../../../boost/config/pragma_message.hpp:24:34: note: '#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.'
   24 | # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
      |                                  ^~~~~~~
../../../boost/bind.hpp:36:1: note: in expansion of macro 'BOOST_PRAGMA_MESSAGE'
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~

The boost/bind.hpp file from which the messages originate isn't actually used and can be removed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant