Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Use of deprecated Bind placeholders

Open
#359 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp, python
Domain
backend

Research direction

Start with boost/python/exception_translator.hpp and boost/python/iterator.hpp, locating their Boost.Bind includes and uses of the global _1 and _2 placeholders. The work is complete when those headers use boost/bind/bind.hpp and namespace-qualified placeholders, with no deprecated global-placeholder usage remaining in the two files.

Written by the indexing model from the issue text.

Description

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
Dominant language
C++
Stars
537
Forks
223
Avg merge
11h 22m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/python

All issues in boostorg/python

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.