Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Use of deprecated Bind placeholders

未關閉
#359 2 則留言 5 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
52/100
Issue 類型
重構
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
cpp, python
領域
backend

研究方向

從 boost/python/exception_translator.hpp 和 boost/python/iterator.hpp 開始,找出其中的 Boost.Bind include 以及全域佔位符 _1 和 _2 的使用位置。當這些標頭檔使用 boost/bind/bind.hpp 和帶有 namespace 限定的佔位符,且這兩個檔案中不再存在對已棄用全域佔位符的使用時,工作即完成。

由索引模型根據 Issue 內容生成。

描述

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
主要語言
C++
星號
537
分支
223
平均合併
19 小時 33 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

boostorg/python 的其他 Issue

查看 boostorg/python 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。