Use of deprecated Bind placeholders

オープン
#359 コメント 2 件 リアクション 5 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 修飾されたプレースホルダーを使用し、2 つのファイルに非推奨のグローバルプレースホルダーの使用が残っていなければ、作業は完了です。

索引モデルが 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
平均マージ
11時間 22分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/python のほかの issue

boostorg/python の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。