Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incorrect documentation for pull_type::operator= in Boost.Coroutine2

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
50/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
documentation

調査の方向性

issue にリンクされている pull_coro.html ページから始め、文書化されている pull_type::operator= の効果を、報告に示されている実装と比較してください。pull_type の swap メンバーが存在しないことも含め、代入と swap のセマンティクスを明確にし、swap によって両方のコルーチンが無効になると示唆しなくなった時点でドキュメントが完全になったと判断してください。

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

説明

The documentation for pull_type::operator= in Boost.Coroutine2 is currently misleading. It states:

Effects: Destroys the internal data of *this and moves the internal data of other to *this. other becomes not-a-coroutine.

Real code:

    pull_coroutine & operator=( pull_coroutine && other) noexcept {
        std::swap( cb_, other.cb_);
        return * this;
    }

Additionally, the absence of a .swap() member function in pull_type might lead to incorrect assumptions—particularly that


using std::swap;
swap(a, b);

would invalidate both coroutines, which is not the case.

Doc:

https://www.boost.org/doc/libs/1_78_0/libs/coroutine2/doc/html/coroutine2/coroutine/asymmetric/pull_coro.html

主要言語
C++
スター
139
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

boostorg/coroutine2 のほかの issue

boostorg/coroutine2 の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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