Skip to content

Use of deprecated Bind placeholders #359

Description

@lukem

Some of the Boost.Python headers still use the deprecated Bind placeholders in the global namespace:

/usr/include/boost/bind.hpp:41:1: 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.

Fix the files:

  • <boost/python/exception_translator.hpp>
  • <boost/python/iterator.hpp>

with fixes:

  1. Replace <boost/bind.hpp> and <boost/bind/placeholders.hpp> with <boost/bind/bind.hpp>
  2. Replace (global) _1 with boost::placeholders::_1
  3. Replace (global) _2 with boost::placeholders::_2

Activity

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

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