Simplify with C++17

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
cpp
領域
tooling

調査の方向性

まず mp/util.h と、列挙されている AUTO_RETURN、Priority<0/1/2>、およびタプルのインデックス付けパターンを監査し、kj::mvCapture の使用箇所も調べます。C++17 の機能を使った焦点を絞った置換に作業を分割し、各変更後も既存の動作が維持されることを検討します。

索引モデルが issue の本文から書いたものです。

説明

Saving note from an email, there are a ton of a simplifications that can be made now that C++17 is required:

A lot of code needs better comments, and there are also big swathes that are overcomplicated because they were written to use c++11, and can now be simplified with c++17. Examples:

  • AUTO_RETURN macro uses can be replaced with auto return types
  • Priority<0>, Prioriity<1>, Priority<2> overloads used for conditional compilation can all go away and be replaced with if constexpr
  • std::tuple indexing code can go away and be replaced with std::apply

Basically all of mp/util.h can go away. Also kj::mvCapture uses can replaced with shorter direct captures.

主要言語
C++
スター
62
フォーク
58
平均マージ
9日 9時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

bitcoin-core/libmultiprocess のほかの issue

bitcoin-core/libmultiprocess の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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