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

"..." ellipsis operator is generating warnings in C++ >= 26: -Wdeprecated-variadic-comma-omission

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp
領域
compilers

調査の方向性

preprocessed.hpp と BOOST_FT_ell マクロから始め、先行する引数がある場合とない場合に、それがどのように生成され使用されるかを追跡します。C++26 モードで結果を検証し、deprecated-variadic-comma-omission 警告が生成されなくなったことを確認します。

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

説明

In C++26, it's now deprecated to use constructions like:

void f(int...)

we should explicitly add a comma between the previous arguments and the ellipsis:

void f(int, ...)

In practice, Boost function_types generate quite some warnings in C++26 mode, here is one of them:

/data/mwrep/res/osp/Boost/25-0-0-0/include/boost/function_types/detail/pp_variate_loop/preprocessed.hpp:135:23: error: omission of ',' before varargs '...' is deprecated in C++26 [-Werror=deprecated-variadic-comma-omission]
  135 | # define BOOST_FT_ell ...

Since BOOST_FT_ell is sometimes used as the only argument, it's not as easy as just adding a comma at the beginning of BOOST_FT_ell, as there should be a special case for when there is no argument before.

I don't know much about Boost.wave, so I am not sure how to propose a fix here.

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

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

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

はじめの一歩

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

boostorg/function_types のほかの issue

boostorg/function_types の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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